diff options
Diffstat (limited to '')
-rw-r--r-- | include/functions_picture.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions_picture.inc.php b/include/functions_picture.inc.php index 09b7c90ce..1a479881c 100644 --- a/include/functions_picture.inc.php +++ b/include/functions_picture.inc.php @@ -149,6 +149,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 ? |