MDL-24996 - make forum_print_post() to specify context on format_text() calls

This commit is contained in:
Eloy Lafuente 2010-11-02 01:59:20 +00:00
parent a211a40c75
commit 384437085a

View File

@ -3285,6 +3285,7 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
$options = new stdClass();
$options->para = false;
$options->trusted = $post->messagetrust;
$options->context = $modcontext;
if ($link and (strlen(strip_tags($post->message)) > $CFG->forum_longpost)) {
// Print shortened version
echo format_text(forum_shorten_post($post->message), $post->messageformat, $options, $course->id);