Merge branch 'MDL-83159-405' of https://github.com/lucaboesch/moodle into MOODLE_405_STABLE
This commit is contained in:
@@ -1391,23 +1391,21 @@ 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, true, ['context' => $context]);
|
||||
$a->courseshortname = format_string($course->shortname, true, ['context' => $context]);
|
||||
// Quiz info.
|
||||
$a->quizname = $quiz->name;
|
||||
$a->quizname = format_string($quiz->name, true, ['context' => $context]);
|
||||
$a->quizreporturl = $CFG->wwwroot . '/mod/quiz/report.php?id=' . $cm->id;
|
||||
$a->quizreportlink = '<a href="' . $a->quizreporturl . '">' .
|
||||
format_string($quiz->name) . ' report</a>';
|
||||
$a->quizreportlink = '<a href="' . $a->quizreporturl . '">' . $a->quizname . ' report</a>';
|
||||
$a->quizurl = $CFG->wwwroot . '/mod/quiz/view.php?id=' . $cm->id;
|
||||
$a->quizlink = '<a href="' . $a->quizurl . '">' . format_string($quiz->name) . '</a>';
|
||||
$a->quizlink = '<a href="' . $a->quizurl . '">' . $a->quizname . '</a>';
|
||||
$a->quizid = $quiz->id;
|
||||
$a->quizcmid = $cm->id;
|
||||
// Attempt info.
|
||||
$a->submissiontime = userdate($attempt->timefinish);
|
||||
$a->timetaken = format_time($attempt->timefinish - $attempt->timestart);
|
||||
$a->quizreviewurl = $CFG->wwwroot . '/mod/quiz/review.php?attempt=' . $attempt->id;
|
||||
$a->quizreviewlink = '<a href="' . $a->quizreviewurl . '">' .
|
||||
format_string($quiz->name) . ' review</a>';
|
||||
$a->quizreviewlink = '<a href="' . $a->quizreviewurl . '">' . $a->quizname . ' review</a>';
|
||||
$a->attemptid = $attempt->id;
|
||||
// Student who sat the quiz info.
|
||||
$a->studentidnumber = $submitter->idnumber;
|
||||
|
||||
Reference in New Issue
Block a user