Index: branches/wmf/1.17wmf1/includes/filerepo/LocalFile.php |
— | — | @@ -670,12 +670,8 @@ |
671 | 671 | $url = $this->getThumbUrl( $file ); |
672 | 672 | $urls[] = $url; |
673 | 673 | wfSuppressWarnings(); |
674 | | - $res = unlink( "$dir/$file" ); |
| 674 | + unlink( "$dir/$file" ); |
675 | 675 | wfRestoreWarnings(); |
676 | | - if( !$res ) { |
677 | | - $err = error_get_last(); |
678 | | - wfDebugLog( 'purgeThumbnails', __METHOD__ . 'Error deleting' . "$dir/$file: {$err['message']}\n" ); |
679 | | - } |
680 | 676 | } |
681 | 677 | } |
682 | 678 | |