X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=2a1feb4603357c318699215d032c1b5e7d81793e;hb=79344bab3b1490c9c607b0c91919749e2ebf2948;hp=c780b6ae6b4eee949cdf9883ac16a422eef28144;hpb=74426f3cf796b149f1ae445e41815bbe148640b2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index c780b6ae6b..2a1feb4603 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -85,7 +85,7 @@ class UpdateMediaWiki extends Maintenance { } function execute() { - global $wgVersion, $wgLang, $wgAllowSchemaUpdates; + global $wgVersion, $wgLang, $wgAllowSchemaUpdates, $wgMessagesDirs; if ( !$wgAllowSchemaUpdates && !( $this->hasOption( 'force' ) @@ -111,6 +111,9 @@ class UpdateMediaWiki extends Maintenance { } } + // T206765: We need to load the installer i18n files as some of errors come installer/updater code + $wgMessagesDirs['MediawikiInstaller'] = dirname( __DIR__ ) . '/includes/installer/i18n'; + $lang = Language::factory( 'en' ); // Set global language to ensure localised errors are in English (T22633) RequestContext::getMain()->setLanguage( $lang );