From: Ævar Arnfjörð Bjarmason Date: Wed, 14 Dec 2005 16:46:27 +0000 (+0000) Subject: * Use call_user_func( $func ) rather than $func(), like wgHooks and parser hooks X-Git-Tag: 1.6.0~948 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=97d93d850c1b66941f70c8df9a888d626264b488;p=lhc%2Fweb%2Fwiklou.git * Use call_user_func( $func ) rather than $func(), like wgHooks and parser hooks --- 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" );