From ccf59f35c6ae219a710c62f5f10272f87dbfb879 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 21 May 2018 11:36:56 +1200 Subject: [PATCH] Prevent text_to_html from adding divs to email subject. --- classes/task/notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/task/notify.php b/classes/task/notify.php index 70aaa09..b52abe9 100644 --- a/classes/task/notify.php +++ b/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); -- 2.11.0