* require_once 'PersistentObject.php' in the $wg(?:Skin|)ExtensionFunctions loops
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 21 Dec 2005 00:13:43 +0000 (00:13 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 21 Dec 2005 00:13:43 +0000 (00:13 +0000)
includes/Setup.php

index c566226..881c5b8 100644 (file)
@@ -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 );
 }