From: Aaron Schulz Date: Fri, 11 Mar 2016 22:14:40 +0000 (-0800) Subject: Move some LocalFile comments around X-Git-Tag: 1.31.0-rc.0~7628^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=d8d4b26c59bcfd22ee1a52bb4817914b9131c1b0;p=lhc%2Fweb%2Fwiklou.git Move some LocalFile comments around Change-Id: I7d7c5618481245aa6e8328ad58f5e841f010fe01 --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 0a3ded748f..29b5891a4b 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -915,6 +915,7 @@ class LocalFile extends File { // Purge any custom thumbnail caches Hooks::run( 'LocalFilePurgeThumbnails', [ $this, $archiveName ] ); + // Delete thumbnails $dir = array_shift( $files ); $this->purgeThumbList( $dir, $files ); @@ -931,7 +932,6 @@ class LocalFile extends File { * @param array $options */ public function purgeThumbnails( $options = [] ) { - // Delete thumbnails $files = $this->getThumbnails(); // Always purge all files from CDN regardless of handler filters $urls = []; @@ -951,6 +951,7 @@ class LocalFile extends File { // Purge any custom thumbnail caches Hooks::run( 'LocalFilePurgeThumbnails', [ $this, false ] ); + // Delete thumbnails $dir = array_shift( $files ); $this->purgeThumbList( $dir, $files );