Followup r97551, use isLocal, more dynamic!
This commit is contained in:
parent
00755349b4
commit
c9408e75d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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... " );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue