Revert r32525 -- general processing should use TS_MW format consistently.
[lhc/web/wiklou.git] / includes / Hooks.php
index cdbd742..0ef2743 100644 (file)
@@ -27,7 +27,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;
 
@@ -130,7 +130,9 @@ function wfRunHooks($event, $args = null) {
                        } else {
                                $prettyFunc = strval( $callback );
                        }
-                       throw new MWException( "Invalid NULL return from broken hook $prettyFunc" );
+                       throw new MWException( "Detected bug in an extension! " .
+                               "Hook $prettyFunc failed to return a value; " .
+                               "should return true to continue hook processing or false to abort." );
                } else if (!$retval) {
                        return false;
                }