mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-65257 message_email: apply filters to course and group names
This commit is contained in:
parent
aa0792484e
commit
5221be53da
1 changed files with 4 additions and 2 deletions
|
@ -109,10 +109,12 @@ class email_digest implements \renderable, \templatable {
|
||||||
$grouppictureurl = $url->out(false);
|
$grouppictureurl = $url->out(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$coursecontext = \context_course::instance($conversation->courseid);
|
||||||
|
|
||||||
$conversationformatted = new \stdClass();
|
$conversationformatted = new \stdClass();
|
||||||
$conversationformatted->groupname = $conversation->name;
|
$conversationformatted->groupname = format_string($conversation->name, true, ['context' => $coursecontext]);
|
||||||
$conversationformatted->grouppictureurl = $grouppictureurl;
|
$conversationformatted->grouppictureurl = $grouppictureurl;
|
||||||
$conversationformatted->coursename = $conversation->coursename;
|
$conversationformatted->coursename = format_string($conversation->coursename, true, ['context' => $coursecontext]);
|
||||||
$conversationformatted->numberofunreadmessages = count($messages);
|
$conversationformatted->numberofunreadmessages = count($messages);
|
||||||
$conversationformatted->messages = [];
|
$conversationformatted->messages = [];
|
||||||
$conversationformatted->viewallmessageslink = \html_writer::link($viewallmessageslink,
|
$conversationformatted->viewallmessageslink = \html_writer::link($viewallmessageslink,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue