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
+2 -1
View File
@@ -295,7 +295,8 @@ $intro_vars = array(
'size' => l10n('%s pixels, %.2f MB', $row['width'].'×'.$row['height'], $row['filesize']/1024),
'stats' => l10n('Visited %d times', $row['hit']),
'id' => l10n($row['id']),
'ext' => l10n('%s file type',strtoupper(end($extTab)))
'ext' => l10n('%s file type',strtoupper(end($extTab))),
'is_svg'=> (strtoupper(end($extTab)) == 'SVG'),
);
if ($conf['rate'] and !empty($row['rating_score']))