mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-16597 temporary icon fix
This commit is contained in:
parent
3bd3e067d6
commit
4fd8ef55ea
1 changed files with 1 additions and 0 deletions
|
@ -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\" /> ".s($fullname)." ($filesize)</a> ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue