This way the value of `--lang` is available to `LocalSettingsGenerator`.
Bug: T210998
Change-Id: I8b6bd83603687e4d23fc7e0642c3b8f27157b62d
(cherry picked from commit
996ac9f61e34db8b5d50ca9574a021e422cf9030)
* Require ext-fileinfo in composer.json, per PHPVersionCheck
* (T176390) Bundled LocalisationUpdate extension: Handle exceptions from GitHubFetcher
* (T208255) Completion search should not change the search query
-
* (T209870) Fix SQL syntax error in MS-SQL initialisation file for new wikis
* (T185049) LogFormatter: Fail softer when trying to link an invalid titles
+* (T210998) Properly set $wgLanguageCode in the generated LocalSettings.php
+ if --lang is used with the command-line installer (install.php).
== MediaWiki 1.31.1 ==
$wgContLang = Language::factory( $option['lang'] );
$wgLang = Language::factory( $option['lang'] );
$wgLanguageCode = $option['lang'];
+ $this->setVar( 'wgLanguageCode', $wgLanguageCode );
RequestContext::getMain()->setLanguage( $wgLang );
}