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/MobileMessaging | |
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/MobileMessaging')
-rw-r--r-- | plugins/MobileMessaging/API.php | 6 | ||||
-rw-r--r-- | plugins/MobileMessaging/Controller.php | 6 | ||||
-rw-r--r-- | plugins/MobileMessaging/ReportRenderer/Sms.php | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/MobileMessaging/API.php b/plugins/MobileMessaging/API.php index d8b88da705..52073993b0 100644 --- a/plugins/MobileMessaging/API.php +++ b/plugins/MobileMessaging/API.php @@ -9,7 +9,7 @@ * @package Piwik_MobileMessaging */ use Piwik\Core\Piwik; -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** * The MobileMessaging API lets you manage and access all the MobileMessaging plugin features including : @@ -399,7 +399,7 @@ class Piwik_MobileMessaging_API { Piwik_SetOption( $user . Piwik_MobileMessaging::USER_SETTINGS_POSTFIX_OPTION, - Piwik_Common::json_encode($settings) + Common::json_encode($settings) ); } @@ -426,7 +426,7 @@ class Piwik_MobileMessaging_API if (empty($userSettings)) { $userSettings = array(); } else { - $userSettings = Piwik_Common::json_decode($userSettings, true); + $userSettings = Common::json_decode($userSettings, true); } return $userSettings; diff --git a/plugins/MobileMessaging/Controller.php b/plugins/MobileMessaging/Controller.php index d720b62236..84893cb172 100644 --- a/plugins/MobileMessaging/Controller.php +++ b/plugins/MobileMessaging/Controller.php @@ -10,7 +10,7 @@ */ use Piwik\Core\Piwik; -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; require_once PIWIK_INCLUDE_PATH . '/plugins/UserCountry/functions.php'; @@ -49,7 +49,7 @@ class Piwik_MobileMessaging_Controller extends Piwik_Controller_Admin // construct the list of countries from the lang files $countries = array(); - foreach (Piwik_Common::getCountriesList() as $countryCode => $continentCode) { + foreach (Common::getCountriesList() as $countryCode => $continentCode) { if (isset(Piwik_MobileMessaging_CountryCallingCodes::$countryCallingCodes[$countryCode])) { $countries[$countryCode] = array( @@ -60,7 +60,7 @@ class Piwik_MobileMessaging_Controller extends Piwik_Controller_Admin } $view->countries = $countries; - $view->defaultCountry = Piwik_Common::getCountry( + $view->defaultCountry = Common::getCountry( Piwik_LanguagesManager::getLanguageCodeForCurrentUser(), true, Piwik_IP::getIpFromHeader() diff --git a/plugins/MobileMessaging/ReportRenderer/Sms.php b/plugins/MobileMessaging/ReportRenderer/Sms.php index 39d10cad2f..c871e6632a 100644 --- a/plugins/MobileMessaging/ReportRenderer/Sms.php +++ b/plugins/MobileMessaging/ReportRenderer/Sms.php @@ -8,7 +8,7 @@ * @category Piwik_Plugins * @package Piwik_MobileMessaging_ReportRenderer */ -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** @@ -55,7 +55,7 @@ class Piwik_MobileMessaging_ReportRenderer_Sms extends Piwik_ReportRenderer public function renderReport($processedReport) { - $isGoalPluginEnabled = Piwik_Common::isGoalPluginEnabled(); + $isGoalPluginEnabled = Common::isGoalPluginEnabled(); $prettyDate = $processedReport['prettyDate']; $reportData = $processedReport['reportData']; |