Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -194,23 +194,15 @@ |
195 | 195 | |
196 | 196 | /** |
197 | 197 | * Prepares param array and sets standard values. |
198 | | - * Standard values for page and lossy are added. |
| 198 | + * Adds normalisation for parameter "lossy". |
199 | 199 | */ |
200 | 200 | function normaliseParams( $image, &$params ) { |
201 | | - $data = $this->getMetaArray( $image ); |
202 | | - if ( !$data ) { |
| 201 | + if ( !parent::normaliseParams( $image, $params ) ) { |
203 | 202 | return false; |
204 | 203 | } |
205 | 204 | |
206 | | - if ( isset( $params['page'] ) ) { |
207 | | - $pages = $data['page_amount']; |
208 | | - |
209 | | - if ( $params['page'] > $pages ) { |
210 | | - $params['page'] = intval( $pages ); |
211 | | - } |
212 | | - } |
213 | | - |
214 | | - if ( !parent::normaliseParams( $image, $params ) ) { |
| 205 | + $data = $this->getMetaArray( $image ); |
| 206 | + if ( !$data ) { |
215 | 207 | return false; |
216 | 208 | } |
217 | 209 | |