diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
commit | b9b85843572bf283f48285001e276ba7e61b63f6 (patch) | |
tree | 4c6f4571552ada9ccfb4030481dcf77308f8b254 /maintenance/deleteBatch.php | |
parent | d9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff) |
updated to MediaWiki 1.14.0
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 ) ) { |