MDL-19808 Converted all print_footer() calls
This commit is contained in:
@@ -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
@@ -402,6 +402,6 @@
|
||||
print_table($learningtable);
|
||||
}
|
||||
|
||||
print_footer($course);
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
?>
|
||||
|
||||
@@ -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
@@ -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();
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -82,5 +82,5 @@
|
||||
}
|
||||
|
||||
echo $OUTPUT->close_window_button();
|
||||
print_footer('none');
|
||||
echo $OUTPUT->footer();
|
||||
?>
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
?>
|
||||
|
||||
@@ -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
@@ -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();
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user