From 9f0783b6aa04af303b9812729067812b96b54923 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 27 Nov 2010 15:25:57 +0000 Subject: [PATCH] Create instance of Maintenance class after AutoLoader and Defines Reason: We might want to use class stuff in the Maintenance constructor (re r77355) --- maintenance/doMaintenance.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 794776decf..c33fd15e32 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -40,16 +40,6 @@ if ( defined( 'MW_NO_SETUP' ) ) { return; } -// Get an object to start us off -$maintenance = new $maintClass(); - -// Basic sanity checks and such -$maintenance->setup(); - -// We used to call this variable $self, but it was moved -// to $maintenance->mSelf. Keep that here for b/c -$self = $maintenance->getName(); - # Setup the profiler global $IP; if ( file_exists( "$IP/StartProfiler.php" ) ) { @@ -62,6 +52,16 @@ if ( file_exists( "$IP/StartProfiler.php" ) ) { require_once( "$IP/includes/AutoLoader.php" ); require_once( "$IP/includes/Defines.php" ); +// Get an object to start us off +$maintenance = new $maintClass(); + +// Basic sanity checks and such +$maintenance->setup(); + +// We used to call this variable $self, but it was moved +// to $maintenance->mSelf. Keep that here for b/c +$self = $maintenance->getName(); + if ( defined( 'MW_CONFIG_CALLBACK' ) ) { # Use a callback function to configure MediaWiki require_once( "$IP/includes/DefaultSettings.php" ); -- 2.20.1