Handle multiple warnings correctly in ApiBase::setWarning(). Calling this function...
[lhc/web/wiklou.git] / includes / Hooks.php
index 0ef2743..046a149 100644 (file)
@@ -19,6 +19,7 @@
  *
  * @author Evan Prodromou <evan@wikitravel.org>
  * @see hooks.txt
+ * @file
  */
 
 
@@ -108,6 +109,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 );
@@ -140,4 +144,3 @@ function wfRunHooks($event, $args = array()) {
 
        return true;
 }
-