From dbb17d2e8d474edd7d7750071d193edecfa8afdd Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 28 Aug 2005 00:04:26 +0000 Subject: [PATCH] minor improvements --- maintenance/moveBatch.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 6355bc4601..2cdd1e027c 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -43,6 +43,7 @@ $wgUser = User::newFromName( $user ); $file = fopen( $filename, 'r' ); if ( !$file ) { print "Unable to read file, exiting\n"; + exit; } $dbw =& wfGetDB( DB_MASTER ); @@ -65,14 +66,16 @@ for ( $linenum = 1; !feof( $file ); $linenum++ ) { } + print $source->getPrefixedText(); $dbw->begin(); $source->moveTo( $dest, false, $reason ); $dbw->immediateCommit(); + print "\n"; - wfWaitForSlaves( 5 ); if ( $interval ) { sleep( $interval ); } + wfWaitForSlaves( 5 ); } -- 2.20.1