From: Tim Starling Date: Tue, 8 Apr 2008 09:51:13 +0000 (+0000) Subject: Workaround for call_user_func_array bug X-Git-Tag: 1.31.0-rc.0~48538 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=554f8277ae6cecda62f5efb432ce942320d45aea;p=lhc%2Fweb%2Fwiklou.git Workaround for call_user_func_array bug --- diff --git a/includes/Hooks.php b/includes/Hooks.php index 0ef2743c96..d1ed4a2432 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -108,6 +108,9 @@ function wfRunHooks($event, $args = array()) { $callback = $func; } + // Run autoloader (workaround for call_user_func_array bug) + is_callable( $callback ); + /* Call the hook. */ wfProfileIn( $func ); $retval = call_user_func_array( $callback, $hook_args );