From: Tim Starling Date: Thu, 10 May 2007 15:55:15 +0000 (+0000) Subject: Fixed another stat call X-Git-Tag: 1.31.0-rc.0~52977 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=01a8450f674ea248d6852abd808669793507f0fe;p=lhc%2Fweb%2Fwiklou.git Fixed another stat call --- diff --git a/includes/Image.php b/includes/Image.php index 7529b8d92f..b456c1d7a4 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -925,12 +925,14 @@ class Image $thumbPath = wfImageThumbDir( $this->name, $this->fromSharedDirectory ) . "/$thumbName"; $thumbUrl = $this->thumbUrlFromName( $thumbName ); - $this->migrateThumbFile( $thumbName ); if ( !$wgGenerateThumbnailOnParse && !($flags & self::RENDER_NOW ) ) { $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); break; } + + wfDebug( "Doing stat for $thumbPath\n" ); + $this->migrateThumbFile( $thumbName ); if ( file_exists( $thumbPath ) ) { $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); break;