MDL-40733 mod_forum: added the forum name to some pages that were missing it

This commit is contained in:
Andrew Davis 2013-08-26 09:53:12 +07:00
parent 438715218d
commit 82cf581693
3 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,7 @@
$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

View 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)) {

View File

@ -111,6 +111,7 @@
$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)) {