diff options
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; } } |