$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 );
}
$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" );