X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcreateAndPromote.php;h=b92735b1a501749b05429d7df75b8e1946223b10;hb=04cea76cbbd1c66ddfa2a674cf383ffb497234ae;hp=da9b4d63a0b3f534f36483d16b1c71883583b972;hpb=68350c51972d88a15e177c58f1346e8d1cdedd87;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index da9b4d63a0..b92735b1a5 100644 --- a/maintenance/createAndPromote.php +++ b/maintenance/createAndPromote.php @@ -114,14 +114,14 @@ class CreateAndPromote extends Maintenance { if ( !$exists ) { // Create the user via AuthManager as there may be various side - // effects that are perfomed by the configured AuthManager chain. + // effects that are performed by the configured AuthManager chain. $status = MediaWiki\Auth\AuthManager::singleton()->autoCreateUser( $user, MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_MAINT, false ); if ( !$status->isGood() ) { - $this->fatalError( $status->getWikiText( null, null, 'en' ) ); + $this->fatalError( $status->getMessage( false, false, 'en' )->text() ); } } @@ -134,7 +134,7 @@ class CreateAndPromote extends Maintenance { 'retype' => $password, ] ); if ( !$status->isGood() ) { - throw new PasswordError( $status->getWikiText( null, null, 'en' ) ); + throw new PasswordError( $status->getMessage( false, false, 'en' )->text() ); } if ( $exists ) { $this->output( "Password set.\n" );