X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=blobdiff_plain;f=maintenance%2FcreateAndPromote.php;h=b92735b1a501749b05429d7df75b8e1946223b10;hb=1eb5d8e44d7f0476a3f85b3f7e15d7f2cbc51f9e;hp=505168e84b712849922fb0714dfcc5be903806c3;hpb=a99171228d167224e376cf584739daf624ebaf71;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index 505168e84b..b92735b1a5 100644 --- a/maintenance/createAndPromote.php +++ b/maintenance/createAndPromote.php @@ -121,7 +121,7 @@ class CreateAndPromote extends Maintenance { 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" );