* @param boolean $canpreview This affects whether we have to worry about secure window stuff.
*/
public function back_to_view_page($canpreview, $message = '') {
- global $CFG;
+ global $CFG, $OUTPUT;
$url = $this->_quizobj->view_url();
if ($this->securewindow_required($canpreview)) {
print_header();
}
print_box_end();
$PAGE->requires->js_function_call('quiz_secure_window.close', array($url, $delay));
- print_footer('empty');
+ echo $OUTPUT->footer();
die();
} else {
redirect($url, $message);
* @return mixed return null, unless $return is true, and a form needs to be displayed.
*/
public function do_password_check($canpreview, $accessmanager, $return = false) {
- global $CFG, $SESSION;
+ global $CFG, $SESSION, $OUTPUT;
/// We have already checked the password for this quiz this session, so don't ask again.
if (!empty($SESSION->passwordcheckedquizzes[$this->_quiz->id])) {
return $output;
} else {
echo $output;
- print_footer('empty');
+ echo $OUTPUT->footer();
exit;
}
}
$addonpage = optional_param('addonpage_form', 0, PARAM_SEQUENCE);
$qcobject->display_randomquestion_user_interface($addonpage);
-print_footer($course);
+echo $OUTPUT->footer();
?>
// Finish the page
$accessmanager->show_attempt_timer_if_needed($attemptobj->get_attempt(), time());
- if ($accessmanager->securewindow_required($attemptobj->is_preview_user())) {
- print_footer('empty');
- } else {
- print_footer($attemptobj->get_course());
- }
+ echo $OUTPUT->footer();
?>
echo '</form>';
/// End of the page.
- print_footer('empty');
+ echo $OUTPUT->footer();
?>
</div>
<?php
}
-print_footer($course);
+echo $OUTPUT->footer();
?>
print_table($table);
// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
?>
/// Print footer
- print_footer($course);
+ echo $OUTPUT->footer();
?>
}
echo "</div>";
- // Finish the page
- if ($accessmanager->securewindow_required($attemptobj->is_preview_user())) {
- print_footer('empty');
- } else {
- print_footer($attemptobj->get_course());
- }
+ echo $OUTPUT->footer();
?>
$attemptobj->print_question($questionid, true, $baseurl);
/// Finish the page
- print_footer();
+ echo $OUTPUT->footer();
?>
/// Finish the page
$accessmanager->show_attempt_timer_if_needed($attemptobj->get_attempt(), time());
-if ($accessmanager->securewindow_required($attemptobj->is_preview_user())) {
- print_footer('empty');
-} else {
- print_footer($attemptobj->get_course());
-}
+echo $OUTPUT->footer();
?>
if (isguestuser()) {
notice_yesno('<p>' . get_string('guestsno', 'quiz') . "</p>\n\n<p>" .
get_string('liketologin') . "</p>\n", get_login_url(), get_referer(false));
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}
print_box('<p>' . get_string('youneedtoenrol', 'quiz') . "</p>\n\n<p>" .
print_continue($CFG->wwwroot . '/course/view.php?id=' . $course->id, true) .
"</p>\n", 'generalbox', 'notice');
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}
$completion=new completion_info($course);
$completion->set_module_viewed($cm);
- print_footer($course);
+ echo $OUTPUT->footer();