From e8768d94ce52cff6e8bd5f88a55ef4de2a36432f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 20 Aug 2020 18:29:19 +0200 Subject: [PATCH] LStemplate::getImagePath(): handle SVG image type/ext as prefered format --- src/includes/class/class.LStemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LStemplate.php b/src/includes/class/class.LStemplate.php index 769362a1..6fe56225 100644 --- a/src/includes/class/class.LStemplate.php +++ b/src/includes/class/class.LStemplate.php @@ -237,7 +237,7 @@ class LStemplate extends LSlog_staticLoggerClass { * @retval string The path of the image file **/ public static function getImagePath($image, $with_nocache=false) { - $exts=array('png','gif','jpg'); + $exts=array('svg', 'png', 'gif', 'jpg'); foreach($exts as $ext) { $path = self :: getFilePath("$image.$ext", self :: $config['image_dir'], False, $with_nocache); if ($path) return $path;