Workaround for call_user_func_array bug
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 8 Apr 2008 09:51:13 +0000 (09:51 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 8 Apr 2008 09:51:13 +0000 (09:51 +0000)
includes/Hooks.php

index 0ef2743..d1ed4a2 100644 (file)
@@ -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 );