From 0de9c47b5050216e11a587fd7b5bd8ae3c607378 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 26 Aug 2019 15:24:37 +0300 Subject: Remove Language::factory and getParentLanguage use Change-Id: I11f8801ef47ec1a1f63d840116e69667e6f3ae3c --- includes/password/PasswordPolicyChecks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/password') diff --git a/includes/password/PasswordPolicyChecks.php b/includes/password/PasswordPolicyChecks.php index 1475c2053c95..ad156742e37f 100644 --- a/includes/password/PasswordPolicyChecks.php +++ b/includes/password/PasswordPolicyChecks.php @@ -153,7 +153,7 @@ class PasswordPolicyChecks { global $wgPopularPasswordFile, $wgSitename; $status = Status::newGood(); if ( $policyVal > 0 ) { - $langEn = Language::factory( 'en' ); + $langEn = MediaWikiServices::getInstance()->getLanguageFactory()->getLanguage( 'en' ); $passwordKey = $langEn->lc( trim( $password ) ); // People often use the name of the current site, which won't be -- cgit v1.2.3