X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fedit.php;h=4219ed05179b391cce6d4d9376f532704130d7e7;hb=30f4b3c103997bd9154b247cda8282eb8bd0ba66;hp=fc83a91bab4bb6a3268362cb318d238020b35e6d;hpb=592637225a4d5db5abcdc288d838c160284eef08;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/edit.php b/maintenance/edit.php index fc83a91bab..4219ed0517 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -54,7 +54,7 @@ class EditCLI extends Maintenance { $noRC = $this->hasOption( 'no-rc' ); if ( $userName === false ) { - $wgUser = User::newSystemUser( 'Maintenance script', array( 'steal' => true ) ); + $wgUser = User::newSystemUser( 'Maintenance script', [ 'steal' => true ] ); } else { $wgUser = User::newFromName( $userName ); } @@ -97,7 +97,7 @@ class EditCLI extends Maintenance { $exit = 1; } if ( !$status->isGood() ) { - $this->output( $status->getWikiText() . "\n" ); + $this->output( $status->getWikiText( false, false, 'en' ) . "\n" ); } exit( $exit ); }