From c89ebef38e55dab65915f925590f7e7984c78724 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 21 Dec 2005 00:13:43 +0000 Subject: [PATCH] * require_once 'PersistentObject.php' in the $wg(?:Skin|)ExtensionFunctions loops --- includes/Setup.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ); } -- 2.20.1