aboutsummaryrefslogtreecommitdiffstats
path: root/includes/password
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2019-10-29 09:25:29 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2019-10-29 09:25:29 +0000
commit17b931caf611e8e80d4fcd4c12ee65b3f7821899 (patch)
tree1d8e78c5ed9e990f387fef61290d1c7b83f1dd45 /includes/password
parent91d5fa6a05b48675e6cf396c19a9269169c4bdc1 (diff)
parent0de9c47b5050216e11a587fd7b5bd8ae3c607378 (diff)
downloadmediawikicore-17b931caf611e8e80d4fcd4c12ee65b3f7821899.tar.gz
mediawikicore-17b931caf611e8e80d4fcd4c12ee65b3f7821899.zip
Merge "Remove Language::factory and getParentLanguage use"
Diffstat (limited to 'includes/password')
-rw-r--r--includes/password/PasswordPolicyChecks.php2
1 files changed, 1 insertions, 1 deletions
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