diff --git a/locallib.php b/locallib.php index 25432cea9d..d2cebd1a78 100644 --- a/locallib.php +++ b/locallib.php @@ -1451,8 +1451,7 @@ function moodleoverflow_print_post($post, $discussion, $moodleoverflow, $cm, $co $mustachedata->withinreviewperiod = $reviewable; // Prepare the post. - $options = (array) portfolio_format_text_options() + ['context' => $modulecontext]; - $mustachedata->postcontent = format_text($post->message, $post->messageformat, $options); + $mustachedata->postcontent = format_text($post->message, $post->messageformat, ['context' => $modulecontext]); // Load the attachments. $mustachedata->attachments = get_attachments($post, $cm);