MDL-31019 quiz secure mode. Fix typo that breaks submit.

This commit is contained in:
Tim Hunt 2012-01-09 17:09:11 +00:00
parent 0e84b1664d
commit d89eb938fd

View file

@ -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',