From a2db81c6e8b26bb08ab5d1cb4548405f1ccb79e5 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 30 May 2022 17:09:04 +0200 Subject: [PATCH] related to #1657 replaced is_svg by file and path ext --- picture.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/picture.php b/picture.php index afe040c2a..d7adab8c4 100644 --- a/picture.php +++ b/picture.php @@ -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') {