dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0075534
)
Followup r97551, use isLocal, more dynamic!
author
Sam Reed
<reedy@users.mediawiki.org>
Mon, 19 Sep 2011 20:27:36 +0000
(20:27 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Mon, 19 Sep 2011 20:27:36 +0000
(20:27 +0000)
maintenance/deleteBatch.php
patch
|
blob
|
history
diff --git
a/maintenance/deleteBatch.php
b/maintenance/deleteBatch.php
index
91524f6
..
14db164
100644
(file)
--- 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... " );
}