From: nicolasconnault Date: Thu, 6 Aug 2009 14:14:09 +0000 (+0000) Subject: MDL-19808 Converted all print_footer() calls X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=396fb912ffd87d5beef13c917ee2e861d4629ef3;p=moodle.git MDL-19808 Converted all print_footer() calls --- diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index b5b53f9d52..22952587eb 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -240,7 +240,7 @@ $canrate = has_capability('mod/forum:rate', $modcontext); forum_print_discussion($course, $cm, $forum, $discussion, $post, $displaymode, $canreply, $canrate); - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/forum/index.php b/mod/forum/index.php index cd60767279..a653d82c9d 100644 --- a/mod/forum/index.php +++ b/mod/forum/index.php @@ -402,6 +402,6 @@ print_table($learningtable); } - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/forum/markposts.php b/mod/forum/markposts.php index 6210a9bd98..bd5bd3e930 100644 --- a/mod/forum/markposts.php +++ b/mod/forum/markposts.php @@ -37,7 +37,7 @@ print_header($course->shortname, $course->fullname, $navigation, '', '', true, "", navmenu($course, $cm)); notice_yesno(get_string('noguesttracking', 'forum').'

'.get_string('liketologin'), get_login_url(), $returnto); - print_footer($course); + echo $OUTPUT->footer(); exit; } diff --git a/mod/forum/post.php b/mod/forum/post.php index 1a692a32dc..1c6cfe9cfc 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -55,7 +55,7 @@ notice_yesno(get_string('noguestpost', 'forum').'

'.get_string('liketologin'), get_login_url(), get_referer(false)); - print_footer($course); + echo $OUTPUT->footer(); exit; } @@ -336,7 +336,7 @@ } } - print_footer($course); + echo $OUTPUT->footer(); die; @@ -418,7 +418,7 @@ forum_print_post($post, $discussion, $forum, $cm, $course, false, false, false); echo ''; } - print_footer($course); + echo $OUTPUT->footer(); die; } else { print_error('unknowaction'); @@ -801,7 +801,7 @@ $mform_post->display(); - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/forum/report.php b/mod/forum/report.php index d3405480a8..38b735e37b 100644 --- a/mod/forum/report.php +++ b/mod/forum/report.php @@ -82,5 +82,5 @@ } echo $OUTPUT->close_window_button(); - print_footer('none'); + echo $OUTPUT->footer(); ?> diff --git a/mod/forum/search.php b/mod/forum/search.php index f5ca87a68e..c31ae464f3 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -108,7 +108,7 @@ "", "", " ", navmenu($course)); forum_print_big_search_form($course); - print_footer($course); + echo $OUTPUT->footer(); exit; } @@ -135,7 +135,7 @@ forum_print_big_search_form($course); - print_footer($course); + echo $OUTPUT->footer(); exit; } @@ -238,7 +238,7 @@ print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode($search)."&id=$course->id&perpage=$perpage&"); - print_footer($course); + echo $OUTPUT->footer(); diff --git a/mod/forum/subscribe.php b/mod/forum/subscribe.php index c2876e4ece..1327b631f1 100644 --- a/mod/forum/subscribe.php +++ b/mod/forum/subscribe.php @@ -52,7 +52,7 @@ notice_yesno(get_string('noguestsubscribe', 'forum').'

'.get_string('liketologin'), get_login_url(), $_SERVER['HTTP_REFERER']); - print_footer($course); + echo $OUTPUT->footer(); exit; } diff --git a/mod/forum/subscribers.php b/mod/forum/subscribers.php index 193f110656..2819ff162a 100644 --- a/mod/forum/subscribers.php +++ b/mod/forum/subscribers.php @@ -77,7 +77,7 @@ echo ""; } - print_footer($course); + echo $OUTPUT->footer(); exit; } @@ -151,6 +151,6 @@ print_simple_box_end(); - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/forum/unsubscribeall.php b/mod/forum/unsubscribeall.php index e1ce8c456f..13b0f6dbb6 100644 --- a/mod/forum/unsubscribeall.php +++ b/mod/forum/unsubscribeall.php @@ -26,7 +26,7 @@ if (data_submitted() and $confirm and confirm_sesskey()) { $DB->set_field('user', 'autosubscribe', 0, array('id'=>$USER->id)); print_box(get_string('unsubscribealldone', 'forum')); print_continue($return); - print_footer(); + echo $OUTPUT->footer(); die; } else { @@ -35,13 +35,13 @@ if (data_submitted() and $confirm and confirm_sesskey()) { if ($a) { $msg = get_string('unsubscribeallconfirm', 'forum', $a); notice_yesno($msg, 'unsubscribeall.php', $return, array('confirm'=>1, 'sesskey'=>sesskey()), NULL, 'post', 'get'); - print_footer(); + echo $OUTPUT->footer(); die; } else { print_box(get_string('unsubscribeallempty', 'forum')); print_continue($return); - print_footer(); + echo $OUTPUT->footer(); die; } } diff --git a/mod/forum/user.php b/mod/forum/user.php index 85782e59d3..9221c6ce2c 100644 --- a/mod/forum/user.php +++ b/mod/forum/user.php @@ -37,7 +37,7 @@ if (!$DB->get_record('role_assignments', array('userid' => $USER->id, 'contextid if ($user->deleted) { print_header(); echo $OUTPUT->heading(get_string('userdeleted')); - print_footer($course); + echo $OUTPUT->footer(); die; } @@ -175,6 +175,6 @@ if ($posts = forum_search_posts($searchterms, $searchcourse, $page*$perpage, $pe } } echo ''; -print_footer($course); +echo $OUTPUT->footer(); ?>