From 1bb25971f27ac17d3a006452840f7e39f1ff7e78 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 26 Jun 2012 18:58:37 +0200 Subject: [PATCH] Disable the db LCStore if the maintenance script doesn't need a db. If $wgLanguageCode != 'en', loading of the language class will go to the LCStore looking for the fallbacks, even if the script doesn't need a database. Change-Id: I6a1920ba02d146622f3a5647bf02ddec3e3da54b --- maintenance/doMaintenance.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 6b29c5fd54..2bb2a0f447 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -93,6 +93,11 @@ if ( $maintenance->getDbType() === Maintenance::DB_ADMIN && { require( MWInit::interpretedPath( 'AdminSettings.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' ) ); -- 2.20.1