{
require( MWInit::interpretedPath( 'AdminSettings.php' ) );
}
-// Some last includes
-require_once( MWInit::compiledPath( 'includes/Setup.php' ) );
+if ( $maintenance->getDbType() === Maintenance::DB_NONE ) {
+ if ( $wgLocalisationCacheConf['storeClass'] === false && ( $wgLocalisationCacheConf['store'] == 'db' || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) ) )
+ $wgLocalisationCacheConf['storeClass'] = 'LCStore_Null';
+}
$maintenance->finalSetup();
+// Some last includes
+require_once( MWInit::compiledPath( 'includes/Setup.php' ) );
// Much much faster startup than creating a title object
$wgTitle = null;