diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-01-11 02:48:50 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-01-11 02:54:13 +0400 |
commit | fb5454b703d00d50fb90fb7ddd0aa58656728093 (patch) | |
tree | fc5626edf1701b9c35baa1c5965a5dc5487067ba /core/EventDispatcher.php | |
parent | 15853da8b03f0ab7a858a2335e9dbd62b7db4116 (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.php | 2 |
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; } } |