MDL-19808 Migrated calls to print_heading

This commit is contained in:
nicolasconnault
2009-08-06 08:23:02 +00:00
parent 08ed955b35
commit f43f1834d3
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -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
View File
@@ -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');
+2 -2
View File
@@ -127,7 +127,7 @@
if (!$posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $perpage, $totalcount)) {
print_header_simple("$strsearchresults", "", $navigation, 'search.words', "", "", "&nbsp;", 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)."&amp;id=$course->id&amp;perpage=$perpage&amp;");
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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
View File
@@ -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&amp;course=$course->id&amp;mode=$mode&amp;perpage=$perpage&amp;");
} 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>';