mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fix: non-image elements without representative and without mime type icon default to thumbnail if possible
git-svn-id: http://piwigo.org/svn/trunk@2206 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -148,6 +148,11 @@ function get_image_location($element_info)
|
||||
$ext = get_extension($element_info['path']);
|
||||
$path = get_themeconf('mime_icon_dir');
|
||||
$path.= strtolower($ext).'.png';
|
||||
if ( !file_exists(PHPWG_ROOT_PATH.$path)
|
||||
and !empty($element_info['tn_ext']) )
|
||||
{
|
||||
$path = get_thumbnail_location($element_info);
|
||||
}
|
||||
}
|
||||
|
||||
// plugins want another location ?
|
||||
|
||||
Reference in New Issue
Block a user