From: Tim Starling Date: Sun, 28 Aug 2005 00:04:26 +0000 (+0000) Subject: minor improvements X-Git-Tag: 1.6.0~1772 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=dbb17d2e8d474edd7d7750071d193edecfa8afdd;p=lhc%2Fweb%2Fwiklou.git minor improvements --- 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 ); }