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') {