From aca35f36f08e34fdb56c15c0891bbc06412749ee Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 30 May 2012 04:22:45 +0000 Subject: 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 --- include/derivative.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/derivative.inc.php') diff --git a/include/derivative.inc.php b/include/derivative.inc.php index 3d5be32d5..a3b944e72 100644 --- a/include/derivative.inc.php +++ b/include/derivative.inc.php @@ -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]); -- cgit v1.2.3