related to #1657 replaced is_svg by file and path ext

This commit is contained in:
Matthieu Leproux committed 2022-05-30 17:09:04 +02:00
1 parent 034bea49b2
commit a2db81c6e8
1 file changed
+2 -1
+2 -1
View File
@@ -508,7 +508,8 @@ while ($row = pwg_db_fetch_assoc($result))
$row['derivatives'] = DerivativeImage::get_all($row['src_image']);
$extTab = explode('.',$row['path']);
$row['is_svg'] = (strtoupper(end($extTab)) == 'SVG');
$row['path_ext'] = strtolower(get_extension($row['path']));
$row['file_ext'] = strtolower(get_extension($row['file']));
if ($i=='current')
{