Merge "Enable $wgStructuredChangeFiltersEnableSaving by default"
[lhc/web/wiklou.git] / includes / media / DjVu.php
index 374e166..f260850 100644 (file)
@@ -465,10 +465,13 @@ class DjVuHandler 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 ) {
-               if ( !is_array( $metadata ) || !isset( $metadata['xml'] ) ) {
+       public function getContentHeaders( $metadata, $fallbackWidth = null, $fallbackHeight = null ) {
+               if ( !isset( $metadata['xml'] ) ) {
                        return [];
                }