LStemplate::getImagePath(): handle SVG image type/ext as prefered format

This commit is contained in:
Benjamin Renard 2020-08-20 18:29:19 +02:00
parent ada72f3604
commit e8768d94ce

View file

@ -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;