mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
related to #1657 svg support when browsing in albums
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user