From: mjollnir_ Date: Tue, 9 Sep 2008 11:25:45 +0000 (+0000) Subject: MDL-16391 - forum posts with no attachments get to be PORTFOLIO_FORMAT_HTML X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b4fecea22d45936b455cef62e65850f6d78c2554;p=moodle.git MDL-16391 - forum posts with no attachments get to be PORTFOLIO_FORMAT_HTML --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 4db7d2f6aa..c7afd49075 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -7270,6 +7270,7 @@ class forum_portfolio_caller extends portfolio_module_caller_base { $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) {