From 7946a337800bf3a1f4099ff9d0556b9b6e20597e Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 29 Aug 2022 14:09:44 +0200 Subject: [PATCH] related to #1657 remove is_svg from code in gallery --- admin/include/functions_metadata.php | 5 ----- themes/default/template/picture.tpl | 4 ++-- themes/default/template/picture_content.tpl | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php index 4bc41c483..22cd279cc 100644 --- a/admin/include/functions_metadata.php +++ b/admin/include/functions_metadata.php @@ -163,7 +163,6 @@ function get_sync_metadata($infos) $infos['filesize'] = floor($fs/1024); $is_tiff = false; - $is_svg = false; if (isset($infos['representative_ext'])) { @@ -185,8 +184,6 @@ function get_sync_metadata($infos) if (in_array(mime_content_type($file), array('image/svg+xml', 'image/svg'))) { - $is_svg = true; - $xml = file_get_contents($file); $xmlget = simplexml_load_string($xml); @@ -195,8 +192,6 @@ function get_sync_metadata($infos) $height = (int) $xmlattributes->height; $vb = (string) $xmlattributes->viewBox; - $infos['is_svg'] = $is_svg; - if (isset($width) and $width != "") { $infos['width'] = $width; diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 0a3bf1c5f..547bdfc2a 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -149,7 +149,7 @@ y.callService( {if isset($previous)} {elseif isset($U_UP)} {elseif isset($U_UP)}