From: Jure Kajzer Date: Tue, 8 Dec 2009 10:24:23 +0000 (+0000) Subject: Fixed coding convention issue X-Git-Tag: 1.31.0-rc.0~38596 X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=commitdiff_plain;h=406f04b6bb243d3eac76460ce53a71108cf7e306;p=lhc%2Fweb%2Fwiklou.git Fixed coding convention issue --- 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