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:
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r--core/EventDispatcher.php5
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();