MDL-40733 mod_forum: added the forum name to some pages that were missing it
authorAndrew Davis <andrew@moodle.com>
Mon, 26 Aug 2013 02:53:12 +0000 (09:53 +0700)
committerAndrew Davis <andrew@moodle.com>
Fri, 30 Aug 2013 07:58:40 +0000 (14:58 +0700)
mod/forum/discuss.php
mod/forum/post.php
mod/forum/view.php

index c387790..1b82180 100644 (file)
     $PAGE->set_heading($course->fullname);
     $PAGE->set_button($searchform);
     echo $OUTPUT->header();
+    echo $OUTPUT->heading(format_string($forum->name), 2);
 
 /// Check to see if groups are being used in this forum
 /// If so, make sure the current person is allowed to see this discussion
index 3a7bf1b..f9d3304 100644 (file)
@@ -860,6 +860,7 @@ $PAGE->set_title("$course->shortname: $strdiscussionname ".format_string($toppos
 $PAGE->set_heading($course->fullname);
 
 echo $OUTPUT->header();
+echo $OUTPUT->heading(format_string($forum->name), 2);
 
 // checkup
 if (!empty($parent) && !forum_user_can_see_post($forum, $discussion, $post, null, $cm)) {
index 2283ad4..2078182 100644 (file)
     $PAGE->set_heading(format_string($course->fullname));
 
     echo $OUTPUT->header();
+    echo $OUTPUT->heading(format_string($forum->name), 2);
 
 /// Some capability checks.
     if (empty($cm->visible) and !has_capability('moodle/course:viewhiddenactivities', $context)) {