diff --git a/mod/quiz/accessrules.php b/mod/quiz/accessrules.php index 434ed3f652a..d13fe12d7eb 100644 --- a/mod/quiz/accessrules.php +++ b/mod/quiz/accessrules.php @@ -218,6 +218,7 @@ class quiz_access_manager { * @param bool $unfinished whether the button is to continue an existing attempt, * or start a new one. This affects whether a javascript alert is shown. */ + //TODO: Add this function to renderer public function print_start_attempt_button($canpreview, $buttontext, $unfinished) { global $OUTPUT; @@ -244,7 +245,7 @@ class quiz_access_manager { $OUTPUT->heading(get_string('noscript', 'quiz'))); } - echo $OUTPUT->render($button) . $warning; + return $OUTPUT->render($button) . $warning; } /** diff --git a/mod/quiz/renderer.php b/mod/quiz/renderer.php index 03023b8c145..2639437b8d3 100644 --- a/mod/quiz/renderer.php +++ b/mod/quiz/renderer.php @@ -660,7 +660,6 @@ class mod_quiz_renderer extends plugin_renderer_base { // Determine if we should be showing a start/continue attempt button, // or a button to go back to the course page. $output .= $this->box_start('quizattempt'); - $output .= 'TEST'; $buttontext = ''; // This will be set something if as start/continue attempt button should appear. if (!quiz_clean_layout($quiz->questions, true)) { $output .= quiz_no_questions_message($quiz, $cm, $context);