From: Aaron Schulz Date: Fri, 1 May 2015 23:38:04 +0000 (-0700) Subject: Removed DjVu pageCount() check and let it surface in the shell command X-Git-Tag: 1.31.0-rc.0~11528 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=54816e2071fc3e38ad581a264967bd46cbb3647e;p=lhc%2Fweb%2Fwiklou.git Removed DjVu pageCount() check and let it surface in the shell command * This avoids loading the bloated metadata field Bug: T96360 Change-Id: I2f1b59e81829d5752857816536688cd596b65edf --- diff --git a/includes/media/DjVu.php b/includes/media/DjVu.php index 5f6b965097..011fb2a046 100644 --- a/includes/media/DjVu.php +++ b/includes/media/DjVu.php @@ -143,14 +143,6 @@ class DjVuHandler extends ImageHandler { $width = $params['width']; $height = $params['height']; $page = $params['page']; - if ( $page > $this->pageCount( $image ) ) { - return new MediaTransformError( - 'thumbnail_error', - $width, - $height, - wfMessage( 'djvu_page_error' )->text() - ); - } if ( $flags & self::TRANSFORM_LATER ) { $params = array(