X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FwrapOldPasswords.php;h=94bd3cb15bc3db50095316e48abc28a4ee3738e6;hb=0f6afd343082036b54d5b6ed0f73cbc485a5221c;hp=85fa7805e6c934be08318bbce3281118142083a4;hpb=32ed9feb39c5acfadf33d34b66cb70bd2ff01d16;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/wrapOldPasswords.php b/maintenance/wrapOldPasswords.php index 85fa7805e6..94bd3cb15b 100644 --- a/maintenance/wrapOldPasswords.php +++ b/maintenance/wrapOldPasswords.php @@ -43,12 +43,6 @@ class WrapOldPasswords extends Maintenance { } public function execute() { - global $wgAuth; - - if ( !$wgAuth->allowSetLocalPassword() ) { - $this->error( '$wgAuth does not allow local passwords. Aborting.', true ); - } - $passwordFactory = new PasswordFactory(); $passwordFactory->init( RequestContext::getMain()->getConfig() ); @@ -57,12 +51,12 @@ class WrapOldPasswords extends Maintenance { // Check that type exists and is a layered type if ( !isset( $typeInfo[$layeredType] ) ) { - $this->error( 'Undefined password type', true ); + $this->fatalError( 'Undefined password type' ); } $passObj = $passwordFactory->newFromType( $layeredType ); if ( !$passObj instanceof LayeredParameterizedPassword ) { - $this->error( 'Layered parameterized password type must be used.', true ); + $this->fatalError( 'Layered parameterized password type must be used.' ); } // Extract the first layer type @@ -87,7 +81,7 @@ class WrapOldPasswords extends Maintenance { __METHOD__, [ 'ORDER BY' => 'user_id', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), 'LOCK IN SHARE MODE', ] );