From 609bc82be745092ad830de7a8e799341f769519c Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 12 May 2009 05:10:28 +0000 Subject: [PATCH] course/format/social MDL-18483 For social course format, print forum intro on course page (Merged from 1.9) --- course/format/social/format.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/course/format/social/format.php b/course/format/social/format.php index a12a6f8b99..7dd42a5302 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -38,7 +38,13 @@ print_container_start(); echo skip_main_destination(); if ($forum = forum_get_course_forum($course->id, 'social')) { - print_heading_block(get_string('socialheadline')); + + /// Print forum intro above posts MDL-18483 + if (trim($forum->intro) != '') { + $options = new stdclass; + $options->para = false; + print_box(format_text($forum->intro, FORMAT_MOODLE, $options), 'generalbox', 'intro'); + } $cm = get_coursemodule_from_instance('forum', $forum->id); $context = get_context_instance(CONTEXT_MODULE, $cm->id); -- 2.39.5