r97552 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97551‎ | r97552 | r97553 >
Date:20:27, 19 September 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r97551, use isLocal, more dynamic!
Modified paths:
  • /trunk/phase3/maintenance/deleteBatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/deleteBatch.php
@@ -87,7 +87,7 @@
8888 $art = new ImagePage( $page );
8989 $img = wfFindFile( $art->mTitle );
9090 if ( !$img
91 - || $img instanceof ForeignDBFile || $img instanceof ForeignAPIFile
 91+ || !$img->isLocal()
9292 || !$img->delete( $reason ) ) {
9393 $this->output( " FAILED to delete image file... " );
9494 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r976351.18wmf1: MFT r96760, r96765, r97551, r97552, r97622catrope15:54, 20 September 2011
r97673REL1_18 MFT r96760, r76765, r96810, r97551, r97552, r97575, r97607, r97608, r...reedy22:36, 20 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97551Don't try and delete ForeignAPIFile or ForeignDBFile...reedy20:20, 19 September 2011

Status & tagging log