X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdoMaintenance.php;h=47e6a898b4626e862508d82f5dd0600b8cd7e285;hb=dccbb7b402af49689fec931ac8ee163dcdb8bc89;hp=978d44f586e4eaceb80bf5146d1398db910e433a;hpb=4d6dad7100c346ec88dfd899e6da0c9a8db92bb7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 978d44f586..47e6a898b4 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -82,8 +82,10 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { // @todo FIXME: Replace this hack with general farm-friendly code # @todo FIXME: Wikimedia-specific stuff needs to go away to an ext # Maybe a hook? + // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix global $cluster; $cluster = 'pmtpa'; + // @codingStandardsIgnoreEnd require "$IP/../wmf-config/wgConf.php"; } // Require the configuration (probably LocalSettings.php) @@ -91,7 +93,10 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { } if ( $maintenance->getDbType() === Maintenance::DB_NONE ) { - if ( $wgLocalisationCacheConf['storeClass'] === false && ( $wgLocalisationCacheConf['store'] == 'db' || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) ) ) { + if ( $wgLocalisationCacheConf['storeClass'] === false + && ( $wgLocalisationCacheConf['store'] == 'db' + || ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) ) + ) { $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull'; } } @@ -99,9 +104,6 @@ $maintenance->finalSetup(); // Some last includes require_once "$IP/includes/Setup.php"; -// Much much faster startup than creating a title object -$wgTitle = null; - // Do the work try { $maintenance->execute();