* Making null the default $args so that hooks without arguments can be created
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 26 Aug 2005 13:50:19 +0000 (13:50 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 26 Aug 2005 13:50:19 +0000 (13:50 +0000)
includes/Hooks.php

index 60dfc41..3c12332 100644 (file)
@@ -30,7 +30,7 @@ if (defined('MEDIAWIKI')) {
         * in here than would normally be necessary.
         */
        
-       function wfRunHooks($event, $args) {
+       function wfRunHooks($event, $args = null) {
                
                global $wgHooks;
                $fname = 'wfRunHooks';