From 88f9a3016c5304c17a09e10677633b55c0667151 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 Nov 2011 08:57:46 +0000 Subject: [PATCH] FU r104410: don't even bother calling filterThumbnailPurgeList() if 'forRefresh' isn't set to be safe --- includes/filerepo/file/LocalFile.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 9606119410..7a7e84387e 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -730,9 +730,11 @@ class LocalFile extends File { $files = $this->getThumbnails(); // Give media handler a chance to filter the purge list - $handler = $this->getHandler(); - if ( $handler ) { - $handler->filterThumbnailPurgeList( $files, $options ); + if ( !empty( $options['forRefresh'] ) ) { + $handler = $this->getHandler(); + if ( $handler ) { + $handler->filterThumbnailPurgeList( $files, $options ); + } } $dir = array_shift( $files ); -- 2.20.1