mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-28 02:00:37 +00:00
Update getContentHeaders signature
Bug: T150741 Change-Id: I3a62185243d5a0d561da63a5e5ccafed093d41bb
This commit is contained in:
parent
60f3c12134
commit
6d433ab841
|
@ -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++ ) {
|
||||
|
|
Loading…
Reference in a new issue