From fb5454b703d00d50fb90fb7ddd0aa58656728093 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Fri, 10 Jan 2014 22:48:50 +0000 Subject: Fixes #4493, move DoNotTrack & AnonymizeIP logic to PrivacyManager plugin. Includes modification to EventDipatcher to allow generic callbacks in getListHooksRegistered method. --- core/EventDispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/EventDispatcher.php') 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; } } -- cgit v1.2.3