fixes #1657 SVG support (both gallery and admin sides)

This commit is contained in:
Matthieu Leproux
2022-04-27 15:12:40 +02:00
committed by plegall
parent 8d1e97c8b7
commit 77b156df18
12 changed files with 66 additions and 12 deletions
+3 -1
View File
@@ -213,7 +213,8 @@ SELECT
{
$legend.= ' ('.$row['file'].')';
}
$extTab = explode('.',$row['path']);
$template->append(
'elements', array_merge($row,
array(
@@ -228,6 +229,7 @@ SELECT
'DESCRIPTION' => htmlspecialchars(isset($row['comment']) ? $row['comment'] : ""),
'DATE_CREATION' => $row['date_creation'],
'TAGS' => $tag_selection,
'is_svg' => (strtoupper(end($extTab)) == 'SVG'),
)
));
}