Index: trunk/phase3/includes/Image.php |
— | — | @@ -925,12 +925,14 @@ |
926 | 926 | $thumbPath = wfImageThumbDir( $this->name, $this->fromSharedDirectory ) . "/$thumbName"; |
927 | 927 | $thumbUrl = $this->thumbUrlFromName( $thumbName ); |
928 | 928 | |
929 | | - $this->migrateThumbFile( $thumbName ); |
930 | 929 | |
931 | 930 | if ( !$wgGenerateThumbnailOnParse && !($flags & self::RENDER_NOW ) ) { |
932 | 931 | $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); |
933 | 932 | break; |
934 | 933 | } |
| 934 | + |
| 935 | + wfDebug( "Doing stat for $thumbPath\n" ); |
| 936 | + $this->migrateThumbFile( $thumbName ); |
935 | 937 | if ( file_exists( $thumbPath ) ) { |
936 | 938 | $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); |
937 | 939 | break; |