Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 25fe918

Browse files
committed
Super simple fix to allow inline images to show
1 parent 1f3636f commit 25fe918

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

email.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,6 @@
302302
$options = array('filter' => false);
303303
$messagehtml = format_text($data->messageWithSigAndAttach, $data->format, $options);
304304

305-
if (!empty($CFG->block_quickmail_downloads)) {
306-
$messagehtml = '<p><center><strong>Embedded images and videos cannot be viewed inline due to login restrictions imposed by your system administrator.</strong></center></p><br />' . $messagehtml;
307-
}
308-
309305
if(!empty($data->mailto)) {
310306

311307
foreach (explode(',', $data->mailto) as $userid) {

lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ function block_quickmail_pluginfile($course, $record, $context, $filearea, $args
506506
$fs = get_file_storage();
507507
global $DB, $CFG;
508508

509-
if (!empty($CFG->block_quickmail_downloads)) {
509+
if (!empty($CFG->block_quickmail_downloads) && $filearea != 'log') {
510510
require_course_login($course, true, $record);
511511
}
512512

0 commit comments

Comments
 (0)