Browse Source

Prevent text_to_html from adding divs to email subject.

MOODLE_35_STABLE
Dan Marsden 7 years ago
parent
commit
3872569a88
  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);
$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);
force_current_language($oldforcelang);

Loading…
Cancel
Save