From: Ævar Arnfjörð Bjarmason Date: Fri, 26 Aug 2005 13:50:19 +0000 (+0000) Subject: * Making null the default $args so that hooks without arguments can be created X-Git-Tag: 1.6.0~1799 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=a8a4a713cb17fe32f00e593a3edec2ff1c7c9e89;p=lhc%2Fweb%2Fwiklou.git * Making null the default $args so that hooks without arguments can be created --- diff --git a/includes/Hooks.php b/includes/Hooks.php index 60dfc41b30..3c12332012 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -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';