MDL-19813 Converted all print_footer() calls

This commit is contained in:
nicolasconnault 2009-08-06 14:13:48 +00:00
parent 0578c9a2a9
commit 867847e352
11 changed files with 16 additions and 29 deletions

View file

@ -220,7 +220,7 @@ class quiz_access_manager {
* @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();
@ -234,7 +234,7 @@ class quiz_access_manager {
}
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);
@ -596,7 +596,7 @@ class password_access_rule extends quiz_access_rule_base {
* @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])) {
@ -657,7 +657,7 @@ class password_access_rule extends quiz_access_rule_base {
return $output;
} else {
echo $output;
print_footer('empty');
echo $OUTPUT->footer();
exit;
}
}