From 61c26661b51e87dfbaf7fe865830d3f6182760f8 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Tue, 17 May 2022 11:32:59 +0200 Subject: [PATCH] related to #1657 upsize svg if they are too small --- admin/batch_manager_unit.php | 4 +++- admin/themes/default/template/batch_manager_unit.tpl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index 74493e959..09b7278af 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -212,7 +212,8 @@ SELECT { $legend.= ' ('.$row['file'].')'; } - + $extTab = explode('.',$row['path']); + $template->append( 'elements', array_merge($row, array( @@ -227,6 +228,7 @@ SELECT 'DESCRIPTION' => htmlspecialchars(@$row['comment']), 'DATE_CREATION' => $row['date_creation'], 'TAGS' => $tag_selection, + 'is_svg' => (strtoupper(end($extTab)) == 'SVG'), ) )); } diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 015dce751..20477b0cf 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -58,7 +58,7 @@ jQuery("a.preview-box").colorbox( { {$element.LEGEND} - + {'Edit'|@translate}