Index: trunk/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php |
— | — | @@ -283,7 +283,7 @@ |
284 | 284 | |
285 | 285 | // isMultiPage |
286 | 286 | $this->assertTrue( $this->handler->isMultiPage( $this->multipage_image ) ); |
287 | | - $this->assertFalse( $this->handler->isMultiPage( $this->mhz_image ) ); |
| 287 | + $this->assertTrue( $this->handler->isMultiPage( $this->mhz_image ) ); |
288 | 288 | |
289 | 289 | // formatMetadata |
290 | 290 | $formattedMetadata = $this->handler->formatMetadata( $this->multipage_image ); |
Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -42,12 +42,11 @@ |
43 | 43 | return true; |
44 | 44 | } |
45 | 45 | |
| 46 | + /** |
| 47 | + * Does the file format support multi-page documents? |
| 48 | + */ |
46 | 49 | function isMultiPage( $img ) { |
47 | | - if ( !$img ) { |
48 | | - return true; |
49 | | - } |
50 | | - $meta = unserialize( $img->metadata ); |
51 | | - return $meta['page_count'] > 1; |
| 50 | + return true; |
52 | 51 | } |
53 | 52 | |
54 | 53 | /** |