X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=blobdiff_plain;f=maintenance%2Fundelete.php;h=278b68d377173ccaa4f0bd8513e13b16a7b879c8;hb=da9e5b795926ba201d04b1937bbdec9f71cb051f;hp=c2d5c2c2486a39278b1362706e422bddfc41aa08;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06;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() . '...' );