$options = new stdClass();
$options->para = true;
$format = $this->get('exporter')->get('format');
- $formattedtext = format_text($post->message, $post->messageformat, $options, $this->get('course')->id);
- $formattedtext = portfolio_rewrite_pluginfile_urls($formattedtext, $this->modcontext->id, 'mod_forum', 'post', $post->id, $format);
+ $formattedtext = portfolio_rewrite_pluginfile_urls($post->message, $this->modcontext->id, 'mod_forum', 'post', $post->id, $format);
+ $formattedtext = format_text($formattedtext, $post->messageformat, $options, $this->get('course')->id);
$output = '<table border="0" cellpadding="3" cellspacing="0" class="forumpost">';