X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FwrapOldPasswords.php;h=ef9e46ed3ae5ada9286dc090f4750fac6ff69fd6;hb=9d00d8783e9d74343fc0ea34ab228ce70684e4e4;hp=94bd3cb15bc3db50095316e48abc28a4ee3738e6;hpb=d0142faf253e069473888dc378979b804fb2b07e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/wrapOldPasswords.php b/maintenance/wrapOldPasswords.php index 94bd3cb15b..ef9e46ed3a 100644 --- a/maintenance/wrapOldPasswords.php +++ b/maintenance/wrapOldPasswords.php @@ -1,7 +1,4 @@ init( RequestContext::getMain()->getConfig() ); + $passwordFactory = MediaWikiServices::getInstance()->getPasswordFactory(); $typeInfo = $passwordFactory->getTypes(); $layeredType = $this->getOption( 'type' ); @@ -121,5 +120,5 @@ class WrapOldPasswords extends Maintenance { } } -$maintClass = "WrapOldPasswords"; +$maintClass = WrapOldPasswords::class; require_once RUN_MAINTENANCE_IF_MAIN;