mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-24996 - make forum_print_post() to specify context on format_text() calls
This commit is contained in:
parent
a211a40c75
commit
384437085a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user