### Eclipse Workspace Patch 1.0 #P moodle_bug Index: mod/forum/view.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/forum/view.php,v retrieving revision 1.106.2.15 diff -u -r1.106.2.15 view.php --- mod/forum/view.php 19 Apr 2008 10:47:42 -0000 1.106.2.15 +++ mod/forum/view.php 7 Apr 2009 21:24:12 -0000 @@ -202,6 +202,7 @@ } $forum->intro = trim($forum->intro); + switch ($forum->type) { case 'single': @@ -230,7 +231,14 @@ case 'eachuser': if (!empty($forum->intro)) { - print_box(format_text($forum->intro), 'generalbox', 'intro'); + $options = new stdClass(); + /**

is a block-level element that should contain a paragraph, + comprised of text, inline elements that modify that text (

, , , etc.), and images. + And it is not a container for all elements.Therefor avoid adding surrounding

tags. And + Since the teachers are responsible for the content avoid clean up of tags **/ + $options->para = false; + $options->noclean = true; + print_box(format_text($forum->intro, FORMAT_MOODLE, $options), 'generalbox', 'intro'); } echo '

'; if (forum_user_can_post_discussion($forum, null, -1, $cm)) { @@ -256,7 +264,14 @@ default: if (!empty($forum->intro)) { - print_box(format_text($forum->intro), 'generalbox', 'intro'); + $options = new stdClass(); + /**

is a block-level element that should contain a paragraph, + comprised of text, inline elements that modify that text (

, , , etc.), and images. + And it is not a container for all elements.Therefor avoid adding surrounding

tags. And + Since the teachers are responsible for the content avoid clean up of tags **/ + $options->para = false; + $options->noclean = true; + print_box(format_text($forum->intro, FORMAT_MOODLE, $options), 'generalbox', 'intro'); } echo '
'; if (!empty($showall)) {