From 370e83bb0dfd0c70de268c93bf07ad5ee0897192 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 15 Aug 2008 01:29:47 +0200 Subject: Update auf 1.13.0 --- includes/Hooks.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes/Hooks.php') diff --git a/includes/Hooks.php b/includes/Hooks.php index 20103db4..046a149d 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -19,6 +19,7 @@ * * @author Evan Prodromou * @see hooks.txt + * @file */ @@ -27,7 +28,7 @@ * careful about its contents. So, there's a lot more error-checking * in here than would normally be necessary. */ -function wfRunHooks($event, $args = null) { +function wfRunHooks($event, $args = array()) { global $wgHooks; @@ -108,6 +109,9 @@ function wfRunHooks($event, $args = null) { $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 ); @@ -140,4 +144,3 @@ function wfRunHooks($event, $args = null) { return true; } - -- cgit v1.2.2