mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-09-29 01:29:55 +02:00
LStemplate::getImagePath(): handle SVG image type/ext as prefered format
This commit is contained in:
parent
ada72f3604
commit
e8768d94ce
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ class LStemplate extends LSlog_staticLoggerClass {
|
||||||
* @retval string The path of the image file
|
* @retval string The path of the image file
|
||||||
**/
|
**/
|
||||||
public static function getImagePath($image, $with_nocache=false) {
|
public static function getImagePath($image, $with_nocache=false) {
|
||||||
$exts=array('png','gif','jpg');
|
$exts=array('svg', 'png', 'gif', 'jpg');
|
||||||
foreach($exts as $ext) {
|
foreach($exts as $ext) {
|
||||||
$path = self :: getFilePath("$image.$ext", self :: $config['image_dir'], False, $with_nocache);
|
$path = self :: getFilePath("$image.$ext", self :: $config['image_dir'], False, $with_nocache);
|
||||||
if ($path) return $path;
|
if ($path) return $path;
|
||||||
|
|
Loading…
Reference in a new issue