r22066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22065‎ | r22066 | r22067 >
Date:15:55, 10 May 2007
Author:tstarling
Status:old
Tags:
Comment:
Fixed another stat call
Modified paths:
  • /trunk/phase3/includes/Image.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Image.php
@@ -925,12 +925,14 @@
926926 $thumbPath = wfImageThumbDir( $this->name, $this->fromSharedDirectory ) . "/$thumbName";
927927 $thumbUrl = $this->thumbUrlFromName( $thumbName );
928928
929 - $this->migrateThumbFile( $thumbName );
930929
931930 if ( !$wgGenerateThumbnailOnParse && !($flags & self::RENDER_NOW ) ) {
932931 $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
933932 break;
934933 }
 934+
 935+ wfDebug( "Doing stat for $thumbPath\n" );
 936+ $this->migrateThumbFile( $thumbName );
935937 if ( file_exists( $thumbPath ) ) {
936938 $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
937939 break;