mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-81450-MOODLE_405_STABLE' of https://github.com/PhMemmel/moodle into MOODLE_405_STABLE
This commit is contained in:
commit
371c836be1
@ -2581,7 +2581,14 @@ function forum_print_attachments($post, $cm, $type) {
|
||||
foreach ($files as $file) {
|
||||
$filename = $file->get_filename();
|
||||
$mimetype = $file->get_mimetype();
|
||||
$iconimage = $OUTPUT->pix_icon(file_file_icon($file), get_mimetype_description($file), 'moodle', array('class' => 'icon'));
|
||||
$iconimage = $OUTPUT->pix_icon(file_file_icon($file),
|
||||
get_mimetype_description($file),
|
||||
'moodle',
|
||||
[
|
||||
'class' => 'icon',
|
||||
'style' => 'max-width: 24px; max-height: 24px; vertical-align: middle;',
|
||||
]
|
||||
);
|
||||
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$context->id.'/mod_forum/attachment/'.$post->id.'/'.$filename);
|
||||
|
||||
if ($type == 'html') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user