Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -374,7 +374,7 @@ |
375 | 375 | && $meta['page_data'][$page]['pixels'] > $wgMaxImageArea ) |
376 | 376 | return $this->doThumbError( $params, 'tiff_sourcefile_too_large' ); |
377 | 377 | $cmd = wfEscapeShellArg( $wgImageMagickConvertCommand ); |
378 | | - $cmd .= " " . wfEscapeShellArg( $srcPath ) . "[" . ( $page - 1 ) . "]"; |
| 378 | + $cmd .= " " . wfEscapeShellArg( $srcPath . "[" . ( $page - 1 ) . "]" ); |
379 | 379 | $cmd .= " -depth 8 -resize {$width} "; |
380 | 380 | $cmd .= wfEscapeShellArg( $dstPath ); |
381 | 381 | } |