mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
multi size: avoid warning for nonphoto elements for which the mime type icon does not exist in the current theme
git-svn-id: http://piwigo.org/svn/trunk@15431 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -54,7 +54,7 @@ final class SrcImage
|
||||
$this->flags |= self::IS_MIMETYPE;
|
||||
if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
|
||||
{
|
||||
$this->rel_path = get_themeconf('mime_icon_dir').'unknown.png';
|
||||
$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