Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler.php |
— | — | @@ -123,7 +123,9 @@ |
124 | 124 | $wgMediaHandlers['image/tiff'] = 'PagedTiffHandler'; |
125 | 125 | $wgHooks['LanguageGetMagic'][] = 'PagedTiffHandler::addTiffLossyMagicWordLang'; |
126 | 126 | |
127 | | -define('TIFF_METADATA_VERSION', '1.0'); |
| 127 | +define('TIFF_METADATA_VERSION', '1.1'); |
| 128 | +# 1.0: initial |
| 129 | +# 1.1: fixed bugs in imageinfo parser |
128 | 130 | |
129 | 131 | //$wgHooks['PagedTiffHandlerRenderCommand'][] = 'PagedTiffHandler::renderCommand'; |
130 | 132 | //$wgHooks['PagedTiffHandlerTiffData'][] = 'PagedTiffImage::tiffData'; |
Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler.image.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | return $this->_meta; |
188 | 188 | } |
189 | 189 | |
190 | | - private function addPageEntry( $entry, &$metadata, &$prevPage ) { |
| 190 | + private function addPageEntry( &$entry, &$metadata, &$prevPage ) { |
191 | 191 | if ( !isset( $entry['page'] ) ) { |
192 | 192 | $entry['page'] = $prevPage +1; |
193 | 193 | } else { |
— | — | @@ -266,7 +266,6 @@ |
267 | 267 | |
268 | 268 | if ( !$bypass ) { |
269 | 269 | $data['warnings'][] = $msg; |
270 | | - break; |
271 | 270 | } |
272 | 271 | } else if ( preg_match('/^\s*(.*?)\s*:\s*(.*?)\s*$/', $row, $m) ) { |
273 | 272 | $key = $m[1]; |