Permalink
Browse files

course/format/social MDL-18483 For social course format, print forum …

…intro on course page
  • Loading branch information...
1 parent 2cfd5fd commit 3c95dfea940212dd82b4be62c6373ef1347ae213 moodler committed May 12, 2009
Showing with 7 additions and 1 deletion.
  1. +7 −1 course/format/social/format.php
View
8 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);

0 comments on commit 3c95dfe

Please sign in to comment.