From: Max Semenik Date: Mon, 8 Mar 2010 17:09:55 +0000 (+0000) Subject: Fixed error output in moveBatch.php X-Git-Tag: 1.31.0-rc.0~37515 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=efb5f77d791f90b0b8544dd09aef0c2ba70b2cff;p=lhc%2Fweb%2Fwiklou.git Fixed error output in moveBatch.php --- diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index bd4ef7b112..d1d3193b5c 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -92,7 +92,8 @@ class MoveBatch extends Maintenance { $dbw->begin(); $err = $source->moveTo( $dest, false, $reason ); if( $err !== true ) { - $this->output( "\nFAILED: $err" ); + $msg = array_shift( $err[0] ); + $this->output( "\nFAILED: " . wfMsg( $msg, $err[0] ) ); } $dbw->commit(); $this->output( "\n" );