From 406f04b6bb243d3eac76460ce53a71108cf7e306 Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Tue, 8 Dec 2009 10:24:23 +0000 Subject: [PATCH] Fixed coding convention issue --- includes/filerepo/File.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index a0a2c4216f..ede98b6270 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -561,13 +561,14 @@ abstract class File { wfDebug( __METHOD__.": Doing stat for $thumbPath\n" ); $this->migrateThumbFile( $thumbName ); - if ( file_exists( $thumbPath ) - && ( $thumbTime = filemtime( $thumbPath ) ) !== FALSE - && gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) - { - $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); - break; - } + if ( file_exists( $thumbPath )) + $thumbTime = filemtime( $thumbPath ); + if ( $thumbTime !== FALSE && + gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) { + + $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); + break; + } $thumb = $this->handler->doTransform( $this, $thumbPath, $thumbUrl, $params ); // Ignore errors if requested -- 2.20.1