From 15b18ffd26491b5082d367a7205602b082844e8a Mon Sep 17 00:00:00 2001 From: Ilya Tregubov Date: Mon, 16 Sep 2024 16:03:27 +0800 Subject: [PATCH] MDL-83159 mod_quiz: Use format_string for course and quiz name. --- mod/quiz/locallib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index 41ed9e9ddf041..9b800743d3773 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -1391,10 +1391,10 @@ function quiz_send_notification_messages($course, $quiz, $attempt, $context, $cm $a = new stdClass(); // Course info. $a->courseid = $course->id; - $a->coursename = $course->fullname; - $a->courseshortname = $course->shortname; + $a->coursename = format_string($course->fullname); + $a->courseshortname = format_string($course->shortname); // Quiz info. - $a->quizname = $quiz->name; + $a->quizname = format_string($quiz->name); $a->quizreporturl = $CFG->wwwroot . '/mod/quiz/report.php?id=' . $cm->id; $a->quizreportlink = '' . format_string($quiz->name) . ' report';