load up includes/Setup.php before Maintenance::finalSetup()
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 10 Nov 2011 11:18:50 +0000 (11:18 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 10 Nov 2011 11:18:50 +0000 (11:18 +0000)
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

index 6b29c5f..c937333 100644 (file)
@@ -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;