Followup r97551, use isLocal, more dynamic!
authorSam Reed <reedy@users.mediawiki.org>
Mon, 19 Sep 2011 20:27:36 +0000 (20:27 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 19 Sep 2011 20:27:36 +0000 (20:27 +0000)
maintenance/deleteBatch.php

index 91524f6..14db164 100644 (file)
@@ -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... " );
                                }