summaryrefslogtreecommitdiff
path: root/maintenance/moveBatch.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-03-09 07:22:49 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-03-09 07:22:49 +0100
commit6f5403ca6e8561c3dcd19284f86b4c3c8dd715ff (patch)
treee65ab3d9e3099ae8a7341f9146107966e5816686 /maintenance/moveBatch.php
parente6475b0b814e9cb5d1b65dd76eee371875fffa9a (diff)
update to MediaWiki 1.15.2
Diffstat (limited to 'maintenance/moveBatch.php')
-rw-r--r--maintenance/moveBatch.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php
index 427e5d09..67d513ed 100644
--- a/maintenance/moveBatch.php
+++ b/maintenance/moveBatch.php
@@ -81,7 +81,8 @@ for ( $linenum = 1; !feof( $file ); $linenum++ ) {
$dbw->begin();
$err = $source->moveTo( $dest, false, $reason );
if( $err !== true ) {
- print "\nFAILED: $err";
+ $msg = array_shift( $err[0] );
+ print "\nFAILED: " . wfMsg( $msg, $err[0] );
}
$dbw->immediateCommit();
print "\n";