From a58285fd06c8113c45377c655dd43cef6337e815 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 11 Jan 2007 19:06:07 +0000 Subject: Aktualisierung auf MediaWiki 1.9.0 --- maintenance/moveBatch.php | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'maintenance/moveBatch.php') diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 8d7141cd..4b0abf7f 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -1,13 +1,23 @@ ] [-r ] [-i ] -# where -# is a file where each line has two titles separated by a pipe -# character. The first title is the source, the second is the destination. -# is the username -# is the move reason -# is the number of seconds to sleep for after each move +/** + * Maintenance script to move a batch of pages + * + * @package MediaWiki + * @subpackage Maintenance + * @author Tim Starling + * + * USAGE: php moveBatch.php [-u ] [-r ] [-i ] + * + * - file with two titles per line, separated with pipe characters; + * the first title is the source, the second is the destination + * - username to perform moves as + * - reason to be given for moves + * - number of seconds to sleep after each move + * + * This will print out error codes from Title::moveTo() if something goes wrong, + * e.g. immobile_namespace for namespaces which can't be moved + */ $oldCwd = getcwd(); $optionsWithArgs = array( 'u', 'r', 'i' ); @@ -66,7 +76,7 @@ for ( $linenum = 1; !feof( $file ); $linenum++ ) { } - print $source->getPrefixedText(); + print $source->getPrefixedText() . ' --> ' . $dest->getPrefixedText(); $dbw->begin(); $err = $source->moveTo( $dest, false, $reason ); if( $err !== true ) { -- cgit v1.2.2