Skip to content

Commit

Permalink
MDL-83159 mod_quiz: Use format_string for course and quiz name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Sep 16, 2024
1 parent 09e56f2 commit 15b18ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/quiz/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<a href="' . $a->quizreporturl . '">' .
format_string($quiz->name) . ' report</a>';
Expand Down

0 comments on commit 15b18ff

Please sign in to comment.