Go to the source code of this file.
Variables | |
$oldCwd = getcwd() | |
$optionsWithArgs = array( 'u', 'r', 'i' ) | |
$filename = 'php://stdin' | |
$user = 'Move page script' | |
$reason = '' | |
$interval = 0 | |
if(isset($args[0])) if(isset($options['u'])) if(isset($options['r'])) if(isset($options['i'])) | $wgUser = User::newFromName( $user ) |
$file = fopen( $filename, 'r' ) | |
if(!$file) | $dbw = wfGetDB( DB_MASTER ) |
USAGE: php moveBatch.php [-u <user>] [-r <reason>] [-i <interval>] [listfile]
[listfile] - file with two titles per line, separated with pipe characters; the first title is the source, the second is the destination. Standard input is used if listfile is not given. <user> - username to perform moves as <reason> - reason to be given for moves <interval> - 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
Definition in file moveBatch.php.
Definition at line 60 of file moveBatch.php.
$file = fopen( $filename, 'r' ) |
Definition at line 54 of file moveBatch.php.
$filename = 'php://stdin' |
Definition at line 31 of file moveBatch.php.
$interval = 0 |
Definition at line 34 of file moveBatch.php.
$oldCwd = getcwd() |
Definition at line 23 of file moveBatch.php.
$optionsWithArgs = array( 'u', 'r', 'i' ) |
Definition at line 24 of file moveBatch.php.
$reason = '' |
Definition at line 33 of file moveBatch.php.
$user = 'Move page script' |
Definition at line 32 of file moveBatch.php.
if (isset($args[0])) if (isset($options['u'])) if (isset($options['r'])) if (isset($options['i'])) $wgUser = User::newFromName( $user ) |
Definition at line 49 of file moveBatch.php.