From 6bcf267b21b6021e5bd3bd88e89fbfab80676757 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Wed, 31 Jul 2013 23:20:47 +0200 Subject: fixing more namespaces --- core/EventDispatcher.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/EventDispatcher.php') 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(); -- cgit v1.2.3