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)}
@@ -159,7 +159,7 @@ y.callService(
{if isset($next)}
-
+
{elseif isset($U_UP)}
diff --git a/themes/default/template/picture_content.tpl b/themes/default/template/picture_content.tpl
index 9e0f7df0b..177b7b8eb 100644
--- a/themes/default/template/picture_content.tpl
+++ b/themes/default/template/picture_content.tpl
@@ -4,7 +4,7 @@
{footer_script}var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png"{/footer_script}
{/if}
-
is_cached()}src="{$current.selected_derivative->get_url()}"{$current.selected_derivative->get_size_htm()}{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif" data-src="{$current.selected_derivative->get_url()}"{/if} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE_ESC} - {$ALT_IMG}{/if}">
+
is_cached()}src="{$current.selected_derivative->get_url()}"{$current.selected_derivative->get_size_htm()}{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif" data-src="{$current.selected_derivative->get_url()}"{/if} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE_ESC} - {$ALT_IMG}{/if}">
{foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip}