Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Actions/Actions.php')
-rw-r--r--plugins/Actions/Actions.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php
index f7bcef4b1f..fdd116c671 100644
--- a/plugins/Actions/Actions.php
+++ b/plugins/Actions/Actions.php
@@ -12,6 +12,7 @@ use Piwik\API\Request;
use Piwik\ArchiveProcessor;
use Piwik\Piwik;
use Piwik\Common;
+use Piwik\Tracker\Action;
use Piwik\ViewDataTable;
use Piwik\WidgetsList;
use Piwik\Plugin;
@@ -147,7 +148,7 @@ class Piwik_Actions extends Plugin
{
$actionType = $this->guessActionTypeFromSegment($segmentName);
- if ($actionType == Piwik_Tracker_Action::TYPE_ACTION_URL) {
+ if ($actionType == Action::TYPE_ACTION_URL) {
// for urls trim protocol and www because it is not recorded in the db
$valueToMatch = preg_replace('@^http[s]?://(www\.)?@i', '', $valueToMatch);
}
@@ -158,7 +159,7 @@ class Piwik_Actions extends Plugin
if ($matchType == SegmentExpression::MATCH_EQUAL
|| $matchType == SegmentExpression::MATCH_NOT_EQUAL
) {
- $sql = Piwik_Tracker_Action::getSqlSelectActionId();
+ $sql = Action::getSqlSelectActionId();
$bind = array($valueToMatch, $valueToMatch, $actionType);
$idAction = Db::fetchOne($sql, $bind);
// if the action is not found, we hack -100 to ensure it tries to match against an integer
@@ -614,13 +615,13 @@ class Piwik_Actions extends Plugin
protected function guessActionTypeFromSegment($segmentName)
{
if (stripos($segmentName, 'pageurl') !== false) {
- $actionType = Piwik_Tracker_Action::TYPE_ACTION_URL;
+ $actionType = Action::TYPE_ACTION_URL;
return $actionType;
} elseif (stripos($segmentName, 'pagetitle') !== false) {
- $actionType = Piwik_Tracker_Action::TYPE_ACTION_NAME;
+ $actionType = Action::TYPE_ACTION_NAME;
return $actionType;
} elseif (stripos($segmentName, 'sitesearch') !== false) {
- $actionType = Piwik_Tracker_Action::TYPE_SITE_SEARCH;
+ $actionType = Action::TYPE_SITE_SEARCH;
return $actionType;
} else {
throw new Exception(" The segment $segmentName has an unexpected value.");