Index: trunk/phase3/maintenance/importImages.php |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | echo( " publishing {$file} by '" . $wgUser->getName() . "', comment '$commentText'... " ); |
198 | 198 | } else { |
199 | 199 | $archive = $image->publish( $file ); |
200 | | - if ( WikiError::isError( $archive ) || !$archive->isGood() ) { |
| 200 | + if ( !$archive->isGood() ) { |
201 | 201 | echo( "failed.\n" ); |
202 | 202 | $failed++; |
203 | 203 | continue; |