From 97d93d850c1b66941f70c8df9a888d626264b488 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 14 Dec 2005 16:46:27 +0000 Subject: [PATCH] * Use call_user_func( $func ) rather than $func(), like wgHooks and parser hooks --- includes/Setup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Setup.php b/includes/Setup.php index efcbbc98f3..c8bb810e96 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -191,7 +191,7 @@ wfProfileIn( $fname.'-User' ); # Entries can be added to this variable during the inclusion # of the extension file. Skins can then perform any necessary initialisation. foreach ( $wgSkinExtensionFunctions as $func ) { - $func(); + call_user_func( $func ); } if( !is_object( $wgAuth ) ) { @@ -300,7 +300,7 @@ wfProfileIn( $fname.'-extensions' ); # of the extension file. This allows the extension to perform # any necessary initialisation in the fully initialised environment foreach ( $wgExtensionFunctions as $func ) { - $func(); + call_user_func( $func ); } wfDebug( "\n" ); -- 2.20.1