X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fundelete.php;h=278b68d377173ccaa4f0bd8513e13b16a7b879c8;hb=8e0d293406dff8d3f170a254447694aaadbf7a4d;hp=c2d5c2c2486a39278b1362706e422bddfc41aa08;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/undelete.php b/maintenance/undelete.php index c2d5c2c248..278b68d377 100644 --- a/maintenance/undelete.php +++ b/maintenance/undelete.php @@ -41,7 +41,7 @@ class Undelete extends Maintenance { $title = Title::newFromText( $pageName ); if ( !$title ) { - $this->error( "Invalid title", true ); + $this->fatalError( "Invalid title" ); } if ( $user === false ) { $wgUser = User::newSystemUser( 'Command line script', [ 'steal' => true ] ); @@ -49,7 +49,7 @@ class Undelete extends Maintenance { $wgUser = User::newFromName( $user ); } if ( !$wgUser ) { - $this->error( "Invalid username", true ); + $this->fatalError( "Invalid username" ); } $archive = new PageArchive( $title, RequestContext::getMain()->getConfig() ); $this->output( "Undeleting " . $title->getPrefixedDBkey() . '...' );