Update getContentHeaders signature

Bug: T150741
Change-Id: I3a62185243d5a0d561da63a5e5ccafed093d41bb
This commit is contained in:
Gilles Dubuc 2017-05-21 13:21:47 +02:00 committed by Gilles Dubuc
parent 60f3c12134
commit 6d433ab841

View file

@ -441,9 +441,12 @@ class PdfHandler extends ImageHandler {
/**
* Get useful response headers for GET/HEAD requests for a file with the given metadata
* @param $metadata Array Contains this handler's unserialized getMetadata() for a file
* @return array
* @param $fallbackWidth int|null Width to fall back to if metadata doesn't have any
* @param $fallbackHeight int|null Height to fall back to if metadata doesn't have any
* @return Array
* @since 1.30
*/
public function getContentHeaders( $metadata ) {
public function getContentHeaders( $metadata, $fallbackWidth = null, $fallbackHeight = null ) {
$pagesByDimensions = [];
$count = intval( $metadata['Pages'] );
for ( $i = 1; $i <= $count; $i++ ) {