X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdoMaintenance.php;h=3dcf12cef00d2b2ed6aaf347379bb93051898046;hb=57d3f41876599497fcb9c672b88ebad7239353dc;hp=69b4b9cab19277aa6e2d9a4f1ca0cc7453ee08c5;hpb=c38472f640c7c4a16fab7d78cab923ca534e0264;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 69b4b9cab1..3dcf12cef0 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -53,8 +53,6 @@ $maintenance->setup(); // to $maintenance->mSelf. Keep that here for b/c $self = $maintenance->getName(); -# Get the MWInit class -require_once "$IP/includes/Init.php"; # Start the autoloader, so that extensions can derive classes from core files require_once "$IP/includes/AutoLoader.php"; # Stub the profiler @@ -68,7 +66,7 @@ if ( file_exists( "$IP/StartProfiler.php" ) ) { // Some other requires require_once "$IP/includes/Defines.php"; -require_once MWInit::compiledPath( 'includes/DefaultSettings.php' ); +require_once "$IP/includes/DefaultSettings.php"; # Load composer's autoloader if present if ( is_readable( "$IP/vendor/autoload.php" ) ) { @@ -86,26 +84,26 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { # Maybe a hook? global $cluster; $cluster = 'pmtpa'; - require MWInit::interpretedPath( '../wmf-config/wgConf.php' ); + require "$IP/../wmf-config/wgConf.php"; } // Require the configuration (probably LocalSettings.php) require $maintenance->loadSettings(); } -if ( $maintenance->getDbType() === Maintenance::DB_ADMIN && - is_readable( "$IP/AdminSettings.php" ) ) -{ - require MWInit::interpretedPath( 'AdminSettings.php' ); +if ( $maintenance->getDbType() === Maintenance::DB_ADMIN + && is_readable( "$IP/AdminSettings.php" ) +) { + require "$IP/AdminSettings.php"; } if ( $maintenance->getDbType() === Maintenance::DB_NONE ) { if ( $wgLocalisationCacheConf['storeClass'] === false && ( $wgLocalisationCacheConf['store'] == 'db' || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) ) ) { - $wgLocalisationCacheConf['storeClass'] = 'LCStore_Null'; + $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull'; } } $maintenance->finalSetup(); // Some last includes -require_once MWInit::compiledPath( 'includes/Setup.php' ); +require_once "$IP/includes/Setup.php"; // Much much faster startup than creating a title object $wgTitle = null;