Index: trunk/phase3/maintenance/deleteBatch.php |
— | — | @@ -67,6 +67,10 @@ |
68 | 68 | $dbw->begin(); |
69 | 69 | if( $page->getNamespace() == NS_IMAGE ) { |
70 | 70 | $art = new ImagePage( $page ); |
| 71 | + $img = wfFindFile( $art->mTitle ); |
| 72 | + if( !$img || !$img->delete( $reason ) ) { |
| 73 | + print "FAILED to delete image file... "; |
| 74 | + } |
71 | 75 | } else { |
72 | 76 | $art = new Article( $page ); |
73 | 77 | } |
— | — | @@ -75,7 +79,7 @@ |
76 | 80 | if ( $success ) { |
77 | 81 | print "\n"; |
78 | 82 | } else { |
79 | | - print " FAILED\n"; |
| 83 | + print " FAILED to delete image page\n"; |
80 | 84 | } |
81 | 85 | |
82 | 86 | if ( $interval ) { |