X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FExifBitmap.php;h=0e10abb9f9329ee7c8942e3c9826c3155b2231a4;hb=c9be16a35596ff369bb5f700c20ae8dc2f7def48;hp=2fe487278966466d20e9cb4f705012fb0e040756;hpb=c7a997a3789035d66995eff716b80aec783f9acd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/ExifBitmap.php b/includes/media/ExifBitmap.php index 2fe4872789..0e10abb9f9 100644 --- a/includes/media/ExifBitmap.php +++ b/includes/media/ExifBitmap.php @@ -242,21 +242,4 @@ class ExifBitmapHandler extends BitmapHandler { return 0; } - - /** - * 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 - */ - public function getContentHeaders( $metadata ) { - if ( !isset( $metadata['Width'] ) || !isset( $metadata['Height'] ) ) { - return []; - } - - $dimensionsMetadata = []; - $dimensionsMetadata['width'] = $metadata['Width']; - $dimensionsMetadata['height'] = $metadata['Height']; - - return parent::getContentHeaders( $dimensionsMetadata ); - } }