This commit is contained in:
Jun Pataleta 2024-04-17 16:36:33 +08:00
commit 9e2a8c6945
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -309,8 +309,9 @@ class forum_portfolio_caller extends portfolio_module_caller_base {
$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">';