]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16597 temporary icon fix
authorskodak <skodak>
Sat, 4 Jul 2009 19:17:48 +0000 (19:17 +0000)
committerskodak <skodak>
Sat, 4 Jul 2009 19:17:48 +0000 (19:17 +0000)
lib/form/filemanager.php

index 4bca6644249c7fa4dadee5b1eb0c690d387a6129..defa26fb2f47e20a86fec1f6b2643bd50bb6f845 100644 (file)
@@ -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 .= '<li>';
                 $html .= "<a href=\"$viewurl\"><img src=\"" . $OUTPUT->old_icon_url('f/' . $icon) . "\" class=\"icon\" />&nbsp;".s($fullname)." ($filesize)</a> ";