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:
authordiosmosis <benakamoorthi@fastmail.fm>2014-01-11 02:48:50 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-01-11 02:54:13 +0400
commitfb5454b703d00d50fb90fb7ddd0aa58656728093 (patch)
treefc5626edf1701b9c35baa1c5965a5dc5487067ba /core/EventDispatcher.php
parent15853da8b03f0ab7a858a2335e9dbd62b7db4116 (diff)
Fixes #4493, move DoNotTrack & AnonymizeIP logic to PrivacyManager plugin. Includes modification to EventDipatcher to allow generic callbacks in getListHooksRegistered method.
Diffstat (limited to 'core/EventDispatcher.php')
-rw-r--r--core/EventDispatcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/EventDispatcher.php b/core/EventDispatcher.php
index 670269862a..a66cd35fba 100644
--- a/core/EventDispatcher.php
+++ b/core/EventDispatcher.php
@@ -82,7 +82,7 @@ class EventDispatcher extends Singleton
if (isset($hooks[$eventName])) {
list($pluginFunction, $callbackGroup) = $this->getCallbackFunctionAndGroupNumber($hooks[$eventName]);
- $callbacks[$callbackGroup][] = array($plugin, $pluginFunction);
+ $callbacks[$callbackGroup][] = is_string($pluginFunction) ? array($plugin, $pluginFunction) : $pluginFunction;
}
}