Skip to content

Commit

Permalink
Merge branch 'MDL-81574-main' of https://github.com/ilyatregubov/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Apr 17, 2024
2 parents ba9b291 + 603a648 commit 9e2a8c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ private function prepare_post($post, $fileoutputextras=null) {
$viewfullnames = true;
// format the post body
$options = portfolio_format_text_options();
$options->context = $this->modcontext;
$format = $this->get('exporter')->get('format');
$formattedtext = format_text($post->message, $post->messageformat, $options, $this->get('course')->id);
$formattedtext = format_text($post->message, $post->messageformat, $options);
$formattedtext = portfolio_rewrite_pluginfile_urls($formattedtext, $this->modcontext->id, 'mod_forum', 'post', $post->id, $format);

$output = '<table border="0" cellpadding="3" cellspacing="0" class="forumpost">';
Expand Down

0 comments on commit 9e2a8c6

Please sign in to comment.