Index: trunk/phase3/includes/filerepo/file/File.php |
— | — | @@ -782,7 +782,7 @@ |
783 | 783 | $extension = $this->getExtension(); |
784 | 784 | list( $thumbExt, $thumbMime ) = $this->handler->getThumbType( |
785 | 785 | $extension, $this->getMimeType(), $params ); |
786 | | - $tmpFile = TempFSFile::factory( 'transform_', $this->getExtension() . '.' . $thumbExt ); |
| 786 | + $tmpFile = TempFSFile::factory( 'transform_', FileBackend::extensionFromPath( $thumbPath ) ); |
787 | 787 | if ( !$tmpFile ) { |
788 | 788 | return new MediaTransformError( 'thumbnail_error', |
789 | 789 | $params['width'], 0, wfMsg( 'thumbnail-temp-create' ) ); |