Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -399,6 +399,13 @@ |
400 | 400 | * @return array thumbnail extension and MIME type |
401 | 401 | */ |
402 | 402 | function getThumbType( $ext, $mime, $params=null ) { |
| 403 | + // Make sure the file is actually a tiff image |
| 404 | + $tiffImageThumbType = parent::getThumbType( $ext, $mime, $params ); |
| 405 | + if ( $tiffImageThumbType[1] !== 'image/tiff' ) { |
| 406 | + // We have some other file pretending to be a tiff image. |
| 407 | + return $tiffImageThumbType; |
| 408 | + } |
| 409 | + |
403 | 410 | if ( $params[ 'lossy' ] == 'lossy' ) { |
404 | 411 | return array( 'jpg', 'image/jpeg' ); |
405 | 412 | } else { |