From: nicolasconnault Date: Thu, 6 Aug 2009 14:14:24 +0000 (+0000) Subject: MDL-19812 Converted all print_footer() calls X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f7e6b8624ae12e54418d0af543e26ed7c7efb119;p=moodle.git MDL-19812 Converted all print_footer() calls --- diff --git a/mod/lesson/edit.php b/mod/lesson/edit.php index cd4b993ac4..94adf5f542 100644 --- a/mod/lesson/edit.php +++ b/mod/lesson/edit.php @@ -296,5 +296,5 @@ } } - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/essay.php b/mod/lesson/essay.php index aa7f08c2b8..1c9d218d18 100644 --- a/mod/lesson/essay.php +++ b/mod/lesson/essay.php @@ -381,5 +381,5 @@ break; } - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/highscores.php b/mod/lesson/highscores.php index 7c8d51109b..09d6a546a1 100644 --- a/mod/lesson/highscores.php +++ b/mod/lesson/highscores.php @@ -204,6 +204,6 @@ break; } - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/import.php b/mod/lesson/import.php index 48a59a8fa4..a4f60151b1 100644 --- a/mod/lesson/import.php +++ b/mod/lesson/import.php @@ -75,7 +75,7 @@ echo "
"; print_continue("view.php?id=$cm->id"); - print_footer($course); + echo $OUTPUT->footer(); exit; } } @@ -110,6 +110,6 @@ echo ""; print_simple_box_end(); - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/importppt.php b/mod/lesson/importppt.php index 6a5d96c19d..cdfecb4ac3 100644 --- a/mod/lesson/importppt.php +++ b/mod/lesson/importppt.php @@ -76,7 +76,7 @@ echo "
"; print_continue("$CFG->wwwroot/mod/$modname/view.php?id=$cm->id"); - print_footer($course); + echo $OUTPUT->footer(); exit; } } @@ -103,7 +103,7 @@ echo ""; print_simple_box_end(); - print_footer($course); + echo $OUTPUT->footer(); // START OF FUNCTIONS diff --git a/mod/lesson/index.php b/mod/lesson/index.php index f0c02f37da..b4a347576e 100644 --- a/mod/lesson/index.php +++ b/mod/lesson/index.php @@ -106,6 +106,6 @@ /// Finish the page - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/lesson.php b/mod/lesson/lesson.php index 9f3f338f3a..f20d661d9c 100644 --- a/mod/lesson/lesson.php +++ b/mod/lesson/lesson.php @@ -58,6 +58,6 @@ print_error('unknowaction'); } - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/mediafile.php b/mod/lesson/mediafile.php index da74916b88..9483910640 100644 --- a/mod/lesson/mediafile.php +++ b/mod/lesson/mediafile.php @@ -49,7 +49,7 @@ '; - print_footer(); + echo $OUTPUT->footer(); } exit(); } @@ -206,5 +206,5 @@ echo ''; } - print_footer(); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/report.php b/mod/lesson/report.php index 8ad3af5e1c..d60bfd749b 100644 --- a/mod/lesson/report.php +++ b/mod/lesson/report.php @@ -119,7 +119,7 @@ if ($nothingtodisplay) { notify(get_string('nolessonattempts', 'lesson')); - print_footer($course); + echo $OUTPUT->footer(); exit(); } @@ -923,6 +923,6 @@ } /// Finish the page - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/lesson/view.php b/mod/lesson/view.php index 841277b7bd..edf4aca81d 100644 --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -45,7 +45,7 @@ echo '
'. get_string('returnto', 'lesson', format_string($course->fullname, true)) .'
'; echo ''; print_box_end(); - print_footer($course); + echo $OUTPUT->footer(); exit(); } else if ($lesson->usepassword and empty($USER->lessonloggedin[$lesson->id])) { // Password protected lesson code @@ -81,7 +81,7 @@ echo ''; print_box_end(); echo "\n"; - print_footer($course); + echo $OUTPUT->footer(); exit(); } @@ -152,7 +152,7 @@ echo '

'.implode('
'.get_string('and', 'lesson').'
', $errors).'

'; print_box_end(); echo '

'; - print_footer($course); + echo $OUTPUT->footer(); exit(); } } @@ -286,7 +286,7 @@ get_string('no').''; echo ''; } - print_footer($course); + echo $OUTPUT->footer(); exit(); } @@ -303,7 +303,7 @@ echo "

id\">".get_string('returntocourse', 'lesson').'
'; echo ""; print_box_end(); - print_footer($course); + echo $OUTPUT->footer(); exit(); //redirect("../../course/view.php?id=$course->id", get_string("alreadytaken", "lesson")); // allow student to retake course even if they have the maximum grade @@ -1017,7 +1017,7 @@ } /// Finish the page - print_footer($course); + echo $OUTPUT->footer(); /// Mark as viewed $completion=new completion_info($course);