Skip to content

Commit

Permalink
MDL-83207 mod_forum: Reduce size of file icon in HTML mails
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Sep 19, 2024
1 parent 62c4f8a commit 6dea293
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2582,6 +2582,7 @@ function forum_print_attachments($post, $cm, $type) {
$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 = html_writer::span($iconimage, '', ['style' => 'display: inline-block; width: 24px; height; 24px;']);
$path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$context->id.'/mod_forum/attachment/'.$post->id.'/'.$filename);

if ($type == 'html') {
Expand Down

0 comments on commit 6dea293

Please sign in to comment.