diff options
author | sgiehl <stefan@piwik.org> | 2013-08-01 01:20:47 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-08-01 01:20:47 +0400 |
commit | 6bcf267b21b6021e5bd3bd88e89fbfab80676757 (patch) | |
tree | 3a0efc3eba52001df0d58f3f3c3739b0adb38c66 /core/EventDispatcher.php | |
parent | 9c12ab4812459b9d9144c65bd0cc9b83d27b6581 (diff) |
fixing more namespaces
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r-- | core/EventDispatcher.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php index 7c311e4dd4..641e654252 100644 --- a/core/EventDispatcher.php +++ b/core/EventDispatcher.php @@ -11,6 +11,7 @@ namespace Piwik; use Piwik\Plugin; +use Piwik\PluginsManager; /** * This class allows code to post events from anywhere in Piwik and for @@ -79,7 +80,7 @@ class EventDispatcher } if (empty($plugins)) { - $plugins = \Piwik\PluginsManager::getInstance()->getLoadedPlugins(); + $plugins = PluginsManager::getInstance()->getLoadedPlugins(); } $callbacks = array(); @@ -87,7 +88,7 @@ class EventDispatcher // collect all callbacks to execute foreach ($plugins as $plugin) { if (is_string($plugin)) { - $plugin = \Piwik\PluginsManager::getInstance()->getLoadedPlugin($plugin); + $plugin = PluginsManager::getInstance()->getLoadedPlugin($plugin); } $hooks = $plugin->getListHooksRegistered(); |