aboutsummaryrefslogtreecommitdiffstats
path: root/mw-config/index.php
diff options
context:
space:
mode:
authorAryeh Gregor <ayg@aryeh.name>2019-08-26 15:24:37 +0300
committerAryeh Gregor <ayg@aryeh.name>2019-10-27 12:34:28 +0200
commit0de9c47b5050216e11a587fd7b5bd8ae3c607378 (patch)
treeb0ac018943acc6a2b137b5678926e2394c255021 /mw-config/index.php
parente787246ce8eb5fe5e90ca6fc6fe71015b570ee1e (diff)
downloadmediawikicore-0de9c47b5050216e11a587fd7b5bd8ae3c607378.tar.gz
mediawikicore-0de9c47b5050216e11a587fd7b5bd8ae3c607378.zip
Remove Language::factory and getParentLanguage use
Change-Id: I11f8801ef47ec1a1f63d840116e69667e6f3ae3c
Diffstat (limited to 'mw-config/index.php')
-rw-r--r--mw-config/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mw-config/index.php b/mw-config/index.php
index b625c96002c9..6d9e1566c9ad 100644
--- a/mw-config/index.php
+++ b/mw-config/index.php
@@ -21,6 +21,8 @@
* @file
*/
+use MediaWiki\MediaWikiServices;
+
// Bail on old versions of PHP, or if composer has not been run yet to install
// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
// phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound
@@ -70,7 +72,7 @@ function wfInstallerMain() {
} else {
$langCode = 'en';
}
- $wgLang = Language::factory( $langCode );
+ $wgLang = MediaWikiServices::getInstance()->getLanguageFactory()->getLanguage( $langCode );
RequestContext::getMain()->setLanguage( $wgLang );
$installer->setParserLanguage( $wgLang );