X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fedit.php;h=825e9caf21a0d7a411c7618a7b58b67dc823d9a2;hb=33415e2930b8e583fe81ec026608c0af523f7afe;hp=d4a7befd758b0378c867065bedc4636df350cf45;hpb=a479750da672066b4189b115d1141a23d8c5cae3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/edit.php b/maintenance/edit.php index d4a7befd75..825e9caf21 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -71,7 +71,7 @@ class EditCLI extends Maintenance { $wgUser->addToDatabase(); } - $title = Title::newFromText( $this->getArg() ); + $title = Title::newFromText( $this->getArg( 0 ) ); if ( !$title ) { $this->fatalError( "Invalid title" ); } @@ -122,7 +122,7 @@ class EditCLI extends Maintenance { $exit = 1; } if ( !$status->isGood() ) { - $this->output( $status->getWikiText( false, false, 'en' ) . "\n" ); + $this->output( $status->getMessage( false, false, 'en' )->text() . "\n" ); } exit( $exit ); }