Skip to content

Commit

Permalink
MDL-78307 quiz: Fix URL passed to secure_window.init_close_button
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou committed May 24, 2023
1 parent b10afcd commit fb71a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/classes/output/renderer.php
Expand Up @@ -247,7 +247,7 @@ public function finish_review_link(quiz_attempt $attemptobj) {

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',
Expand Down

0 comments on commit fb71a7a

Please sign in to comment.