From dec9991bbf9c544fb91aa69c82904547c4a793f4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Oct 2008 08:14:35 +0000 Subject: [PATCH] "icons matching only the first part of the mime type were not displayed" --- phpgwapi/inc/class.egw_vfs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_vfs.inc.php b/phpgwapi/inc/class.egw_vfs.inc.php index 8d8718f946..159327e948 100644 --- a/phpgwapi/inc/class.egw_vfs.inc.php +++ b/phpgwapi/inc/class.egw_vfs.inc.php @@ -844,7 +844,7 @@ class egw_vfs extends vfs_stream_wrapper $mime_type = 'unknown'; } $mime_full = strtolower(str_replace ('/','_',$mime_type)); - list($mime_part) = explode('_',$mime_type); + list($mime_part) = explode('_',$mime_full); if (!($img=$GLOBALS['egw']->common->image('filemanager',$icon='mime'.$size.'_'.$mime_full)) && !($img=$GLOBALS['egw']->common->image('filemanager',$icon='mime'.$size.'_'.$mime_part)))