minor improvements
This commit is contained in:
parent
cb476d1193
commit
dbb17d2e8d
1 changed files with 4 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue