From 4fd8ef55eaabf290499690b5643a9773b97d9ecb Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 4 Jul 2009 19:17:48 +0000 Subject: [PATCH] MDL-16597 temporary icon fix --- lib/form/filemanager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/form/filemanager.php b/lib/form/filemanager.php index 4bca664424..defa26fb2f 100644 --- a/lib/form/filemanager.php +++ b/lib/form/filemanager.php @@ -112,6 +112,7 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element { $filesize = $file->get_filesize(); $filesize = $filesize ? display_size($filesize) : ''; $icon = mimeinfo_from_type('icon', $file->get_mimetype()); + $icon = str_replace('.gif', '', $icon); //TODO: temp icon fix $viewurl = file_encode_url("$CFG->wwwroot/draftfile.php", "/$context->id/user_draft/$draftid".$fullname, false, false); $html .= '
  • '; $html .= "old_icon_url('f/' . $icon) . "\" class=\"icon\" /> ".s($fullname)." ($filesize) "; -- 2.39.5