Fixed coding convention issue
authorJure Kajzer <freakolowsky@users.mediawiki.org>
Tue, 8 Dec 2009 10:24:23 +0000 (10:24 +0000)
committerJure Kajzer <freakolowsky@users.mediawiki.org>
Tue, 8 Dec 2009 10:24:23 +0000 (10:24 +0000)
includes/filerepo/File.php

index a0a2c42..ede98b6 100644 (file)
@@ -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