summaryrefslogtreecommitdiff
path: root/maintenance/deleteBatch.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/deleteBatch.php')
-rw-r--r--maintenance/deleteBatch.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php
index 6821ee29..62169641 100644
--- a/maintenance/deleteBatch.php
+++ b/maintenance/deleteBatch.php
@@ -67,6 +67,10 @@ for ( $linenum = 1; !feof( $file ); $linenum++ ) {
$dbw->begin();
if( $page->getNamespace() == NS_IMAGE ) {
$art = new ImagePage( $page );
+ $img = wfFindFile( $art->mTitle );
+ if( !$img || !$img->delete( $reason ) ) {
+ print "FAILED to delete image file... ";
+ }
} else {
$art = new Article( $page );
}
@@ -75,7 +79,7 @@ for ( $linenum = 1; !feof( $file ); $linenum++ ) {
if ( $success ) {
print "\n";
} else {
- print " FAILED\n";
+ print " FAILED to delete image page\n";
}
if ( $interval ) {