From 513a094b094941b648a705905681c4d209c2a703 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 10 Nov 2011 11:18:50 +0000 Subject: [PATCH] load up includes/Setup.php before Maintenance::finalSetup() This let us get access to global functions and the autoloader when trying to do some final setup for our maintenance scripts. --- maintenance/doMaintenance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 6b29c5fd54..c93733314a 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -93,10 +93,11 @@ if ( $maintenance->getDbType() === Maintenance::DB_ADMIN && { require( MWInit::interpretedPath( 'AdminSettings.php' ) ); } -$maintenance->finalSetup(); // Some last includes require_once( MWInit::compiledPath( 'includes/Setup.php' ) ); +$maintenance->finalSetup(); + // Much much faster startup than creating a title object $wgTitle = null; -- 2.20.1