MDL-19808 Migrated calls to print_heading
This commit is contained in:
+2
-2
@@ -393,12 +393,12 @@
|
||||
}
|
||||
|
||||
if ($generalforums) {
|
||||
print_heading(get_string('generalforums', 'forum'));
|
||||
echo $OUTPUT->heading(get_string('generalforums', 'forum'));
|
||||
print_table($generaltable);
|
||||
}
|
||||
|
||||
if ($learningforums) {
|
||||
print_heading(get_string('learningforums', 'forum'));
|
||||
echo $OUTPUT->heading(get_string('learningforums', 'forum'));
|
||||
print_table($learningtable);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -410,7 +410,7 @@
|
||||
$navigation = build_navigation($navlinks, $cm);
|
||||
print_header_simple(format_string($discussion->name).": ".format_string($post->subject), "", $navigation, '', "", true, "", navmenu($course, $cm));
|
||||
|
||||
print_heading(get_string('pruneheading', 'forum'));
|
||||
echo $OUTPUT->heading(get_string('pruneheading', 'forum'));
|
||||
echo '<center>';
|
||||
|
||||
include('prune.html');
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
if (!$posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $perpage, $totalcount)) {
|
||||
print_header_simple("$strsearchresults", "", $navigation, 'search.words', "", "", " ", navmenu($course));
|
||||
print_heading(get_string("nopostscontaining", "forum", $search));
|
||||
echo $OUTPUT->heading(get_string("nopostscontaining", "forum", $search));
|
||||
|
||||
if (!$individualparams) {
|
||||
$words = $search;
|
||||
@@ -158,7 +158,7 @@
|
||||
'">'.get_string('advancedsearch','forum').'...</a>';
|
||||
echo '</div>';
|
||||
|
||||
print_heading("$strsearchresults: $totalcount");
|
||||
echo $OUTPUT->heading("$strsearchresults: $totalcount");
|
||||
|
||||
print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode($search)."&id=$course->id&perpage=$perpage&");
|
||||
|
||||
|
||||
@@ -58,11 +58,11 @@
|
||||
|
||||
if (! $users = forum_subscribed_users($course, $forum, $currentgroup, $context) ) {
|
||||
|
||||
print_heading(get_string("nosubscribers", "forum"));
|
||||
echo $OUTPUT->heading(get_string("nosubscribers", "forum"));
|
||||
|
||||
} else {
|
||||
|
||||
print_heading(get_string("subscribersto","forum", "'".format_string($forum->name)."'"));
|
||||
echo $OUTPUT->heading(get_string("subscribersto","forum", "'".format_string($forum->name)."'"));
|
||||
|
||||
echo '<table align="center" cellpadding="5" cellspacing="5">';
|
||||
foreach ($users as $user) {
|
||||
|
||||
@@ -19,7 +19,7 @@ $navlinks = array(array('name' => get_string('modulename', 'forum'), 'link' => n
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header($strunsubscribeall, format_string($COURSE->fullname), $navigation);
|
||||
print_heading($strunsubscribeall);
|
||||
echo $OUTPUT->heading($strunsubscribeall);
|
||||
|
||||
if (data_submitted() and $confirm and confirm_sesskey()) {
|
||||
$DB->delete_records('forum_subscriptions', array('userid'=>$USER->id));
|
||||
|
||||
+3
-3
@@ -36,7 +36,7 @@ if (!$DB->get_record('role_assignments', array('userid' => $USER->id, 'contextid
|
||||
|
||||
if ($user->deleted) {
|
||||
print_header();
|
||||
print_heading(get_string('userdeleted'));
|
||||
echo $OUTPUT->heading(get_string('userdeleted'));
|
||||
print_footer($course);
|
||||
die;
|
||||
}
|
||||
@@ -169,9 +169,9 @@ if ($posts = forum_search_posts($searchterms, $searchcourse, $page*$perpage, $pe
|
||||
"user.php?id=$user->id&course=$course->id&mode=$mode&perpage=$perpage&");
|
||||
} else {
|
||||
if ($mode == 'posts') {
|
||||
print_heading(get_string('noposts', 'forum'));
|
||||
echo $OUTPUT->heading(get_string('noposts', 'forum'));
|
||||
} else {
|
||||
print_heading(get_string('nodiscussionsstartedby', 'forum'));
|
||||
echo $OUTPUT->heading(get_string('nodiscussionsstartedby', 'forum'));
|
||||
}
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
Reference in New Issue
Block a user