Merge branch 'MDL-78307-master' of https://github.com/dpalou/moodle
This commit is contained in:
@@ -247,7 +247,7 @@ class renderer extends plugin_renderer_base {
|
||||
|
||||
if ($attemptobj->get_access_manager(time())->attempt_must_be_in_popup()) {
|
||||
$this->page->requires->js_init_call('M.mod_quiz.secure_window.init_close_button',
|
||||
[$url], false, quiz_get_js_module());
|
||||
[$url->out(false)], false, quiz_get_js_module());
|
||||
return html_writer::empty_tag('input', ['type' => 'button',
|
||||
'value' => get_string('finishreview', 'quiz'),
|
||||
'id' => 'secureclosebutton',
|
||||
|
||||
@@ -1457,7 +1457,7 @@ function quiz_send_overdue_message($attemptobj) {
|
||||
$a->courseshortname = format_string($attemptobj->get_course()->shortname);
|
||||
// Quiz info.
|
||||
$a->quizname = $quizname;
|
||||
$a->quizurl = $attemptobj->view_url();
|
||||
$a->quizurl = $attemptobj->view_url()->out(false);
|
||||
$a->quizlink = '<a href="' . $a->quizurl . '">' . $quizname . '</a>';
|
||||
// Attempt info.
|
||||
$a->attemptduedate = userdate($duedate);
|
||||
|
||||
Reference in New Issue
Block a user