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:
authormattab <matthieu.aubry@gmail.com>2013-07-21 12:01:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-21 12:01:36 +0400
commitaca8ec33a85e0a70b818b6227145041717d7a69e (patch)
tree41377e3a9737d63222522ef93ecf8483f3faddfa /plugins/MobileMessaging
parent0a63210e3eae7562af1a3dbee340eb1ee140db3d (diff)
Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.
Diffstat (limited to 'plugins/MobileMessaging')
-rw-r--r--plugins/MobileMessaging/MobileMessaging.php5
-rw-r--r--plugins/MobileMessaging/SMSProvider.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/MobileMessaging/MobileMessaging.php b/plugins/MobileMessaging/MobileMessaging.php
index 941d753fa7..840ae48abc 100644
--- a/plugins/MobileMessaging/MobileMessaging.php
+++ b/plugins/MobileMessaging/MobileMessaging.php
@@ -9,12 +9,13 @@
* @package Piwik_MobileMessaging
*/
use Piwik\Piwik;
+use Piwik\Plugin;
/**
*
* @package Piwik_MobileMessaging
*/
-class Piwik_MobileMessaging extends Piwik_Plugin
+class Piwik_MobileMessaging extends Plugin
{
const DELEGATED_MANAGEMENT_OPTION = 'MobileMessaging_DelegatedManagement';
const PROVIDER_OPTION = 'Provider';
@@ -158,7 +159,7 @@ class Piwik_MobileMessaging extends Piwik_Plugin
public function getRendererInstance(&$reportRenderer, $info)
{
if (self::manageEvent($info)) {
- if (PluginsManager::getInstance()->isPluginActivated('MultiSites')) {
+ if (\Piwik\PluginsManager::getInstance()->isPluginActivated('MultiSites')) {
$reportRenderer = new Piwik_MobileMessaging_ReportRenderer_Sms();
} else {
$reportRenderer = new Piwik_MobileMessaging_ReportRenderer_Exception(
diff --git a/plugins/MobileMessaging/SMSProvider.php b/plugins/MobileMessaging/SMSProvider.php
index 6abc527dcb..402c135b48 100644
--- a/plugins/MobileMessaging/SMSProvider.php
+++ b/plugins/MobileMessaging/SMSProvider.php
@@ -8,6 +8,7 @@
* @category Piwik_Plugins
* @package Piwik_MobileMessaging
*/
+use Piwik\Loader;
/**
* The Piwik_MobileMessaging_SMSProvider abstract class is used as a base class for SMS provider implementations.
@@ -49,7 +50,7 @@ abstract class Piwik_MobileMessaging_SMSProvider
$className = 'Piwik_MobileMessaging_SMSProvider_' . $providerName;
try {
- Piwik_Loader::loadClass($className);
+ Loader::loadClass($className);
return new $className;
} catch (Exception $e) {
throw new Exception(