diff options
author | sgiehl <stefan@piwik.org> | 2013-08-11 22:20:44 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-08-11 22:20:44 +0400 |
commit | 2e8c72c8de7039f255a43e93bbcc0b78ddcef253 (patch) | |
tree | 3b10d4516fe3a686459ad2b9ab17c9f821c4de3c /plugins/Actions | |
parent | d293408450bc8b0c0f79934da6a43914626935ae (diff) |
fixed namespaces
Diffstat (limited to 'plugins/Actions')
-rw-r--r-- | plugins/Actions/Actions.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php index 1fd74b5efe..442a14cfea 100644 --- a/plugins/Actions/Actions.php +++ b/plugins/Actions/Actions.php @@ -148,7 +148,7 @@ class Actions extends \Piwik\Plugin * @param string $sqlField * @param string $matchType * @param string $segmentName - * @throws Exception + * @throws \Exception * @return array|int|string */ public function getIdActionFromSegment($valueToMatch, $sqlField, $matchType, $segmentName) @@ -191,7 +191,7 @@ class Actions extends \Piwik\Plugin $sql .= '( name NOT LIKE CONCAT(\'%\', ?, \'%\') ' . $sqlMatchType . ' )'; break; default: - throw new Exception("This match type $matchType is not available for action-segments."); + throw new \Exception("This match type $matchType is not available for action-segments."); break; } @@ -605,7 +605,7 @@ class Actions extends \Piwik\Plugin static public function checkCustomVariablesPluginEnabled() { if (!self::isCustomVariablesPluginsEnabled()) { - throw new Exception("To Track Site Search Categories, please ask the Piwik Administrator to enable the 'Custom Variables' plugin in Settings > Plugins."); + throw new \Exception("To Track Site Search Categories, please ask the Piwik Administrator to enable the 'Custom Variables' plugin in Settings > Plugins."); } } @@ -617,7 +617,7 @@ class Actions extends \Piwik\Plugin /** * @param $segmentName * @return int - * @throws Exception + * @throws \Exception */ protected function guessActionTypeFromSegment($segmentName) { @@ -631,7 +631,7 @@ class Actions extends \Piwik\Plugin $actionType = Action::TYPE_SITE_SEARCH; return $actionType; } else { - throw new Exception(" The segment $segmentName has an unexpected value."); + throw new \Exception(" The segment $segmentName has an unexpected value."); } } @@ -705,7 +705,7 @@ class Actions extends \Piwik\Plugin $result['filter_excludelowpop'] = 'nb_hits'; $result['filter_excludelowpop_value'] = function () { // computing minimum value to exclude (2 percent of the total number of actions) - $visitsInfo = Piwik_VisitsSummary_Controller::getVisitsSummary()->getFirstRow(); + $visitsInfo = \Piwik\Plugins\VisitsSummary\Controller::getVisitsSummary()->getFirstRow(); $nbActions = $visitsInfo->getColumn('nb_actions'); $nbActionsLowPopulationThreshold = floor(0.02 * $nbActions); |