$this->supportedformats = array(portfolio_format_from_file($f));
} elseif ($this->post) {
$this->postfiles = $fs->get_area_files(get_context_instance(CONTEXT_MODULE, $this->cm->id)->id, 'forum_attachment', $this->post->id, "timemodified", false);
+ $this->supportedformats = array(PORTFOLIO_FORMAT_HTML);
} else {
$this->posts = forum_get_all_discussion_posts($this->discussion->id, 'p.created ASC');
foreach ($this->posts as $post) {