From: Ævar Arnfjörð Bjarmason Date: Wed, 21 Dec 2005 00:13:43 +0000 (+0000) Subject: * require_once 'PersistentObject.php' in the $wg(?:Skin|)ExtensionFunctions loops X-Git-Tag: 1.6.0~919 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=c89ebef38e55dab65915f925590f7e7984c78724;p=lhc%2Fweb%2Fwiklou.git * require_once 'PersistentObject.php' in the $wg(?:Skin|)ExtensionFunctions loops --- diff --git a/includes/Setup.php b/includes/Setup.php index c566226545..881c5b846f 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -191,6 +191,8 @@ 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 ) { + require_once 'PersistentObject.php'; + call_user_func( $func ); } @@ -304,6 +306,8 @@ 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 ) { + require_once 'PersistentObject.php'; + call_user_func( $func ); }