Followup r97551, use isLocal, more dynamic!

This commit is contained in:
Sam Reed 2011-09-19 20:27:36 +00:00
parent 00755349b4
commit c9408e75d0

View 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... " );
}