MDL-31019 quiz secure mode. Fix typo that breaks submit.
This commit is contained in:
@@ -489,11 +489,11 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||
$output .= $this->box_start();
|
||||
|
||||
if ($message) {
|
||||
$output .= html_writer('p', $message);
|
||||
$output .= html_writer('p', get_string('windowclosing', 'quiz'));
|
||||
$output .= html_writer::tag('p', $message);
|
||||
$output .= html_writer::tag('p', get_string('windowclosing', 'quiz'));
|
||||
$delay = 5;
|
||||
} else {
|
||||
$output .= html_writer('p', get_string('pleaseclose', 'quiz'));
|
||||
$output .= html_writer::tag('p', get_string('pleaseclose', 'quiz'));
|
||||
$delay = 0;
|
||||
}
|
||||
$this->page->requires->js_function_call('M.mod_quiz.secure_window.close',
|
||||
|
||||
Reference in New Issue
Block a user