revert r102636
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 24 Nov 2011 09:41:54 +0000 (09:41 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 24 Nov 2011 09:41:54 +0000 (09:41 +0000)
This move back the maintenance finalSetup code above core Setup.
If we really need to do any setup after core Setup has run, we should use
a new method in the Maintenance class. For example afterCoreSetup()

maintenance/doMaintenance.php

index c937333..6b29c5f 100644 (file)
@@ -93,11 +93,10 @@ 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;