MDL-31019 quiz secure mode. Fix typo that breaks submit.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 9 Jan 2012 17:09:11 +0000 (17:09 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 9 Jan 2012 17:09:11 +0000 (17:09 +0000)
mod/quiz/renderer.php

index 14d5d79..33d731f 100644 (file)
@@ -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',