diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
commit | 03b4953f008c1063e6d7166143ba844e8c6e89cc (patch) | |
tree | 7b9f0fef13d75417c551f813c98dba1a22f2fff3 /plugins/MultiSites | |
parent | 9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (diff) |
Refactor class Piwik_Common to \Piwik\Core\Common
Notice that auto refactoring has created a nested namespace. Not sure this is what we want - so we might have to edit those nested namespaces afterwards (I think they don't look so good)
Diffstat (limited to 'plugins/MultiSites')
-rwxr-xr-x | plugins/MultiSites/API.php | 6 | ||||
-rw-r--r-- | plugins/MultiSites/Controller.php | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/MultiSites/API.php b/plugins/MultiSites/API.php index 1060129b8a..433263ebb8 100755 --- a/plugins/MultiSites/API.php +++ b/plugins/MultiSites/API.php @@ -9,7 +9,7 @@ * @package Piwik_MultiSites */ use Piwik\Core\Piwik; -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** * The MultiSites API lets you request the key metrics (visits, page views, revenue) for all Websites in Piwik. @@ -363,7 +363,7 @@ class Piwik_MultiSites_API } } else { $revenueMetric = ''; - if (Piwik_Common::isGoalPluginEnabled()) { + if (Common::isGoalPluginEnabled()) { $revenueMetric = Piwik_Goals_Archiver::getRecordName(self::GOAL_REVENUE_METRIC); } @@ -431,7 +431,7 @@ class Piwik_MultiSites_API public static function getApiMetrics($enhanced) { $metrics = self::$baseMetrics; - if (Piwik_Common::isGoalPluginEnabled()) { + if (Common::isGoalPluginEnabled()) { // goal revenue metric $metrics[self::GOAL_REVENUE_METRIC] = array( self::METRIC_TRANSLATION_KEY => 'Goals_ColumnRevenue', diff --git a/plugins/MultiSites/Controller.php b/plugins/MultiSites/Controller.php index c63820a6a7..a6634df68f 100644 --- a/plugins/MultiSites/Controller.php +++ b/plugins/MultiSites/Controller.php @@ -9,7 +9,7 @@ * @package Piwik_MultiSites */ use Piwik\Core\Piwik; -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** * @@ -46,10 +46,10 @@ class Piwik_MultiSites_Controller extends Piwik_Controller public function getSitesInfo($isWidgetized = false) { Piwik::checkUserHasSomeViewAccess(); - $displayRevenueColumn = Piwik_Common::isGoalPluginEnabled(); + $displayRevenueColumn = Common::isGoalPluginEnabled(); - $date = Piwik_Common::getRequestVar('date', 'today'); - $period = Piwik_Common::getRequestVar('period', 'day'); + $date = Common::getRequestVar('date', 'today'); + $period = Common::getRequestVar('period', 'day'); $siteIds = Piwik_SitesManager_API::getInstance()->getSitesIdWithAtLeastViewAccess(); list($minDate, $maxDate) = $this->getMinMaxDateAcrossWebsites($siteIds); @@ -210,7 +210,7 @@ class Piwik_MultiSites_Controller extends Piwik_Controller public function getEvolutionGraph($fetch = false, $columns = false) { if (empty($columns)) { - $columns = Piwik_Common::getRequestVar('columns'); + $columns = Common::getRequestVar('columns'); } $api = "API.get"; |