Index: trunk/phase3/maintenance/deleteBatch.php |
— | — | @@ -86,8 +86,10 @@ |
87 | 87 | if ( $page->getNamespace() == NS_FILE ) { |
88 | 88 | $art = new ImagePage( $page ); |
89 | 89 | $img = wfFindFile( $art->mTitle ); |
90 | | - if ( !$img || !$img->delete( $reason ) ) { |
91 | | - $this->output( "FAILED to delete image file... " ); |
| 90 | + if ( !$img |
| 91 | + || $img instanceof ForeignDBFile || $img instanceof ForeignAPIFile |
| 92 | + || !$img->delete( $reason ) ) { |
| 93 | + $this->output( " FAILED to delete image file... " ); |
92 | 94 | } |
93 | 95 | } else { |
94 | 96 | $art = new Article( $page ); |
— | — | @@ -95,7 +97,7 @@ |
96 | 98 | $success = $art->doDeleteArticle( $reason ); |
97 | 99 | $dbw->commit(); |
98 | 100 | if ( $success ) { |
99 | | - $this->output( "\n" ); |
| 101 | + $this->output( " Deleted!\n" ); |
100 | 102 | } else { |
101 | 103 | $this->output( " FAILED to delete article\n" ); |
102 | 104 | } |