From 554f8277ae6cecda62f5efb432ce942320d45aea Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 8 Apr 2008 09:51:13 +0000 Subject: [PATCH] Workaround for call_user_func_array bug --- includes/Hooks.php | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.20.1