MDL-19808 Converted all print_footer() calls

This commit is contained in:
nicolasconnault
2009-08-06 14:14:09 +00:00
parent 867847e352
commit 396fb912ff
10 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -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();
?>
+1 -1
View File
@@ -402,6 +402,6 @@
print_table($learningtable);
}
print_footer($course);
echo $OUTPUT->footer();
?>
+1 -1
View File
@@ -37,7 +37,7 @@
print_header($course->shortname, $course->fullname, $navigation, '', '', true, "", navmenu($course, $cm));
notice_yesno(get_string('noguesttracking', 'forum').'<br /><br />'.get_string('liketologin'),
get_login_url(), $returnto);
print_footer($course);
echo $OUTPUT->footer();
exit;
}
+4 -4
View File
@@ -55,7 +55,7 @@
notice_yesno(get_string('noguestpost', 'forum').'<br /><br />'.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 '</center>';
}
print_footer($course);
echo $OUTPUT->footer();
die;
} else {
print_error('unknowaction');
@@ -801,7 +801,7 @@
$mform_post->display();
print_footer($course);
echo $OUTPUT->footer();
?>
+1 -1
View File
@@ -82,5 +82,5 @@
}
echo $OUTPUT->close_window_button();
print_footer('none');
echo $OUTPUT->footer();
?>
+3 -3
View File
@@ -108,7 +108,7 @@
"", "", "&nbsp;", 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)."&amp;id=$course->id&amp;perpage=$perpage&amp;");
print_footer($course);
echo $OUTPUT->footer();
+1 -1
View File
@@ -52,7 +52,7 @@
notice_yesno(get_string('noguestsubscribe', 'forum').'<br /><br />'.get_string('liketologin'),
get_login_url(), $_SERVER['HTTP_REFERER']);
print_footer($course);
echo $OUTPUT->footer();
exit;
}
+2 -2
View File
@@ -77,7 +77,7 @@
echo "</table>";
}
print_footer($course);
echo $OUTPUT->footer();
exit;
}
@@ -151,6 +151,6 @@
print_simple_box_end();
print_footer($course);
echo $OUTPUT->footer();
?>
+3 -3
View File
@@ -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;
}
}
+2 -2
View File
@@ -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 '</div>';
print_footer($course);
echo $OUTPUT->footer();
?>