From: Aaron Schulz Date: Mon, 28 Nov 2011 08:57:46 +0000 (+0000) Subject: FU r104410: don't even bother calling filterThumbnailPurgeList() if 'forRefresh'... X-Git-Tag: 1.31.0-rc.0~26256 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=88f9a3016c5304c17a09e10677633b55c0667151;p=lhc%2Fweb%2Fwiklou.git FU r104410: don't even bother calling filterThumbnailPurgeList() if 'forRefresh' isn't set to be safe --- 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 );