X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=3c2968988ad966af5303f7e44871718e47153002;hb=2e8d14593abba8658da342941a3bf282d1f4eb81;hp=8645ab137523479689c790fd238f315e88764612;hpb=ca2c2c0f4fdd633779ce1d48d09645275b0e5827;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 8645ab1375..3c2968988a 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -76,7 +76,7 @@ class MoveBatch extends Maintenance { $this->error( "Unable to read file, exiting", true ); } if ( $user === false ) { - $wgUser = User::newSystemUser( 'Move page script', array( 'steal' => true ) ); + $wgUser = User::newSystemUser( 'Move page script', [ 'steal' => true ] ); } else { $wgUser = User::newFromName( $user ); } @@ -110,7 +110,7 @@ class MoveBatch extends Maintenance { $mp = new MovePage( $source, $dest ); $status = $mp->move( $wgUser, $reason, !$noredirects ); if ( !$status->isOK() ) { - $this->output( "\nFAILED: " . $status->getWikiText() ); + $this->output( "\nFAILED: " . $status->getWikiText( false, false, 'en' ) ); } $this->commitTransaction( $dbw, __METHOD__ ); $this->output( "\n" );