From a8a4a713cb17fe32f00e593a3edec2ff1c7c9e89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 26 Aug 2005 13:50:19 +0000 Subject: [PATCH] * Making null the default $args so that hooks without arguments can be created --- includes/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.20.1