Added missing braces.
authorJure Kajzer <freakolowsky@users.mediawiki.org>
Wed, 9 Dec 2009 09:10:55 +0000 (09:10 +0000)
committerJure Kajzer <freakolowsky@users.mediawiki.org>
Wed, 9 Dec 2009 09:10:55 +0000 (09:10 +0000)
includes/filerepo/File.php

index ede98b6..c020f7f 100644 (file)
@@ -561,7 +561,7 @@ abstract class File {
 
                        wfDebug( __METHOD__.": Doing stat for $thumbPath\n" );
                        $this->migrateThumbFile( $thumbName );
-                       if ( file_exists( $thumbPath ))
+                       if ( file_exists( $thumbPath )) {
                                $thumbTime = filemtime( $thumbPath );
                                if ( $thumbTime !== FALSE &&
                                     gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) { 
@@ -569,6 +569,7 @@ abstract class File {
                                        $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
                                        break;
                                }
+                       }
                        $thumb = $this->handler->doTransform( $this, $thumbPath, $thumbUrl, $params );
 
                        // Ignore errors if requested