X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=7d15959c324166f2447e4b301fa2bbe3d4f10856;hb=9bdc558bc481218235b0b4f1b9c34ff6c86fd56c;hp=f84699494b8556f481cd345c76ad527e0ee02032;hpb=125d6d5feceba4d3d740efb5be0be83058546a20;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index f84699494b..7d15959c32 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -34,7 +34,7 @@ * e.g. immobile_namespace for namespaces which can't be moved */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); /** * Maintenance script to move a batch of pages. @@ -102,7 +102,7 @@ class MoveBatch extends Maintenance { $err = $source->moveTo( $dest, false, $reason ); if ( $err !== true ) { $msg = array_shift( $err[0] ); - $this->output( "\nFAILED: " . wfMsg( $msg, $err[0] ) ); + $this->output( "\nFAILED: " . wfMessage( $msg, $err[0] )->text() ); } $dbw->commit( __METHOD__ ); $this->output( "\n" );