X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=maintenance%2Fedit.php;h=7e50e9e1b4d3edc655cd1e1f91d136d9e94df5a2;hb=315e3d6d589bb3df47aa70017620f7308309fec4;hp=4219ed05179b391cce6d4d9376f532704130d7e7;hpb=62d543af640479a1ecbd4de69b3f975e509ca1ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/edit.php b/maintenance/edit.php index 4219ed0517..7e50e9e1b4 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -59,7 +59,7 @@ class EditCLI extends Maintenance { $wgUser = User::newFromName( $userName ); } if ( !$wgUser ) { - $this->error( "Invalid username", true ); + $this->fatalError( "Invalid username" ); } if ( $wgUser->isAnon() ) { $wgUser->addToDatabase(); @@ -67,13 +67,13 @@ class EditCLI extends Maintenance { $title = Title::newFromText( $this->getArg() ); if ( !$title ) { - $this->error( "Invalid title", true ); + $this->fatalError( "Invalid title" ); } if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) { - $this->error( "Page does not exist", true ); + $this->fatalError( "Page does not exist" ); } elseif ( $this->hasOption( 'createonly' ) && $title->exists() ) { - $this->error( "Page already exists", true ); + $this->fatalError( "Page already exists" ); } $page = WikiPage::factory( $title );