Browse Source

Prevent text_to_html from adding divs to email subject.

MOODLE_32_STABLE
Dan Marsden 7 years ago
parent
commit
0de2abeede
  1. 2
      classes/task/notify.php

2
classes/task/notify.php

@ -94,7 +94,7 @@ class notify extends \core\task\scheduled_task {
$oldforcelang = force_current_language($user->lang); $oldforcelang = force_current_language($user->lang);
$emailcontent = format_text($record->emailcontent, $record->emailcontentformat); $emailcontent = format_text($record->emailcontent, $record->emailcontentformat);
$emailsubject = format_text($record->emailsubject); $emailsubject = format_text($record->emailsubject, FORMAT_HTML);
email_to_user($user, $from, $emailsubject, $emailcontent, $emailcontent); email_to_user($user, $from, $emailsubject, $emailcontent, $emailcontent);
force_current_language($oldforcelang); force_current_language($oldforcelang);

Loading…
Cancel
Save