MDL-85802 mod_quiz: format course/quiz notification content.
This commit is contained in:
committed by
Mihail Geshoski
parent
34968cacf5
commit
0c7746bdea
@@ -153,8 +153,10 @@ class notification_helper {
|
||||
|
||||
$stringparams = [
|
||||
'firstname' => $user->firstname,
|
||||
'quizname' => $quiz->name,
|
||||
'coursename' => $quizobj->get_course()->fullname,
|
||||
'quizname' => format_string($quiz->name,
|
||||
options: ['context' => $quizobj->get_context()]),
|
||||
'coursename' => format_string($quizobj->get_course()->fullname,
|
||||
options: ['context' => \context_course::instance($quizobj->get_course()->id)]),
|
||||
'timeopen' => userdate($user->timeopen),
|
||||
'timeclose' => !empty($user->timeclose) ? userdate($user->timeclose) : get_string('statusna'),
|
||||
'url' => $url,
|
||||
@@ -164,7 +166,7 @@ class notification_helper {
|
||||
'user' => \core_user::get_user($user->id),
|
||||
'url' => $url->out(false),
|
||||
'subject' => get_string('quizopendatesoonsubject', 'mod_quiz', $stringparams),
|
||||
'quizname' => $quiz->name,
|
||||
'quizname' => $stringparams['quizname'],
|
||||
'html' => get_string('quizopendatesoonhtml', 'mod_quiz', $stringparams),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user