diff options
Diffstat (limited to 'maintenance/deleteBatch.php')
-rw-r--r-- | maintenance/deleteBatch.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index d10948a0..5aeea781 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -2,9 +2,10 @@ /** * Deletes a batch of pages - * Usage: php deleteBatch.php [-u <user>] [-r <reason>] [-i <interval>] <listfile> + * Usage: php deleteBatch.php [-u <user>] [-r <reason>] [-i <interval>] [listfile] * where - * <listfile> is a file where each line contains the title of a page to be deleted. + * [listfile] is a file where each line contains the title of a page to be + * deleted, standard input is used if listfile is not given. * <user> is the username * <reason> is the delete reason * <interval> is the number of seconds to sleep for after each delete @@ -70,7 +71,7 @@ for ( $linenum = 1; !feof( $file ); $linenum++ ) { print $page->getPrefixedText(); $dbw->begin(); - if( $page->getNamespace() == NS_IMAGE ) { + if( $page->getNamespace() == NS_FILE ) { $art = new ImagePage( $page ); $img = wfFindFile( $art->mTitle ); if( !$img || !$img->delete( $reason ) ) { |