Index: trunk/phase3/includes/filerepo/file/LocalFile.php |
— | — | @@ -730,9 +730,11 @@ |
731 | 731 | $files = $this->getThumbnails(); |
732 | 732 | |
733 | 733 | // Give media handler a chance to filter the purge list |
734 | | - $handler = $this->getHandler(); |
735 | | - if ( $handler ) { |
736 | | - $handler->filterThumbnailPurgeList( $files, $options ); |
| 734 | + if ( !empty( $options['forRefresh'] ) ) { |
| 735 | + $handler = $this->getHandler(); |
| 736 | + if ( $handler ) { |
| 737 | + $handler->filterThumbnailPurgeList( $files, $options ); |
| 738 | + } |
737 | 739 | } |
738 | 740 | |
739 | 741 | $dir = array_shift( $files ); |