From: Sam Reed Date: Mon, 19 Sep 2011 20:27:36 +0000 (+0000) Subject: Followup r97551, use isLocal, more dynamic! X-Git-Tag: 1.31.0-rc.0~27547 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=c9408e75d072ec7c603dce9d7d7496d30d02b90b;p=lhc%2Fweb%2Fwiklou.git Followup r97551, use isLocal, more dynamic! --- diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index 91524f667d..14db16425a 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -87,7 +87,7 @@ class DeleteBatch extends Maintenance { $art = new ImagePage( $page ); $img = wfFindFile( $art->mTitle ); if ( !$img - || $img instanceof ForeignDBFile || $img instanceof ForeignAPIFile + || !$img->isLocal() || !$img->delete( $reason ) ) { $this->output( " FAILED to delete image file... " ); }