mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-31019 quiz secure mode. Fix typo that breaks submit.
This commit is contained in:
parent
0e84b1664d
commit
d89eb938fd
1 changed files with 3 additions and 3 deletions
|
@ -489,11 +489,11 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||||
$output .= $this->box_start();
|
$output .= $this->box_start();
|
||||||
|
|
||||||
if ($message) {
|
if ($message) {
|
||||||
$output .= html_writer('p', $message);
|
$output .= html_writer::tag('p', $message);
|
||||||
$output .= html_writer('p', get_string('windowclosing', 'quiz'));
|
$output .= html_writer::tag('p', get_string('windowclosing', 'quiz'));
|
||||||
$delay = 5;
|
$delay = 5;
|
||||||
} else {
|
} else {
|
||||||
$output .= html_writer('p', get_string('pleaseclose', 'quiz'));
|
$output .= html_writer::tag('p', get_string('pleaseclose', 'quiz'));
|
||||||
$delay = 0;
|
$delay = 0;
|
||||||
}
|
}
|
||||||
$this->page->requires->js_function_call('M.mod_quiz.secure_window.close',
|
$this->page->requires->js_function_call('M.mod_quiz.secure_window.close',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue