X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FCliInstaller.php;h=aee51e78cd1e3b5929fa0f03150524c17cc34a67;hb=abd115b3ab971b6ceece38d2300ecfb7dc41d029;hp=4f531dae522e33ccef28d3f5a893bab208d37934;hpb=cee72ecf216e9bc4e15f25cd9e64787dbec0da1b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php index 4f531dae52..aee51e78cd 100644 --- a/includes/installer/CliInstaller.php +++ b/includes/installer/CliInstaller.php @@ -21,6 +21,8 @@ * @ingroup Deployment */ +use MediaWiki\MediaWikiServices; + /** * Class for the core installer command line interface. * @@ -69,9 +71,9 @@ class CliInstaller extends Installer { if ( isset( $option['lang'] ) ) { global $wgLang, $wgLanguageCode; $this->setVar( '_UserLang', $option['lang'] ); - $wgContLang = Language::factory( $option['lang'] ); - $wgLang = Language::factory( $option['lang'] ); $wgLanguageCode = $option['lang']; + $wgContLang = MediaWikiServices::getInstance()->getContentLanguage(); + $wgLang = Language::factory( $option['lang'] ); RequestContext::getMain()->setLanguage( $wgLang ); }