r26048 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26047‎ | r26048 | r26049 >
Date:00:47, 24 September 2007
Author:aaron
Status:old
Tags:
Comment:
*Actually delete the files too (bug 8250)
*Make notices more specific
Modified paths:
  • /trunk/phase3/maintenance/deleteBatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/deleteBatch.php
@@ -67,6 +67,10 @@
6868 $dbw->begin();
6969 if( $page->getNamespace() == NS_IMAGE ) {
7070 $art = new ImagePage( $page );
 71+ $img = wfFindFile( $art->mTitle );
 72+ if( !$img || !$img->delete( $reason ) ) {
 73+ print "FAILED to delete image file... ";
 74+ }
7175 } else {
7276 $art = new Article( $page );
7377 }
@@ -75,7 +79,7 @@
7680 if ( $success ) {
7781 print "\n";
7882 } else {
79 - print " FAILED\n";
 83+ print " FAILED to delete image page\n";
8084 }
8185
8286 if ( $interval ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r26135Merged revisions 26012-26133 via svnmerge from...david21:15, 25 September 2007

Status & tagging log