diff --git a/include/derivative.inc.php b/include/derivative.inc.php index fab4a8e28..9963a5068 100644 --- a/include/derivative.inc.php +++ b/include/derivative.inc.php @@ -57,7 +57,12 @@ final class SrcImage $this->flags |= self::IS_MIMETYPE; if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) { - $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; + $extTab = explode('.',$infos['path']); + if (strtoupper(end($extTab)) == 'SVG') { + $this->rel_path = $infos['path']; + } else { + $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; + } $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path); } $this->size = array($size[0],$size[1]);