Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -300,7 +300,6 @@ |
301 | 301 | // Get params and force width, height and page to be integers |
302 | 302 | $width = intval( $params['width'] ); |
303 | 303 | $height = intval( $params['height'] ); |
304 | | - $srcPath = $image->getPath(); |
305 | 304 | $page = intval( $params['page'] ); |
306 | 305 | $page = $this->adjustPage( $image, $page ); |
307 | 306 | |
— | — | @@ -333,6 +332,9 @@ |
334 | 333 | if ( ( $width * $height ) > $wgMaxImageAreaForVips ) |
335 | 334 | return $this->doThumbError( $params, 'tiff_targetfile_too_large' ); |
336 | 335 | |
| 336 | + // Get local copy source for shell scripts |
| 337 | + $srcPath = $image->getLocalRefPath(); |
| 338 | + |
337 | 339 | // Shrink factors must be > 1. |
338 | 340 | if ( ( $pagesize['width'] > $width ) && ( $pagesize['height'] > $height ) ) { |
339 | 341 | $xfac = $pagesize['width'] / $width; |