From 54816e2071fc3e38ad581a264967bd46cbb3647e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 1 May 2015 16:38:04 -0700 Subject: [PATCH] Removed DjVu pageCount() check and let it surface in the shell command * This avoids loading the bloated metadata field Bug: T96360 Change-Id: I2f1b59e81829d5752857816536688cd596b65edf --- includes/media/DjVu.php | 8 -------- 1 file changed, 8 deletions(-) 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( -- 2.20.1