From b4fecea22d45936b455cef62e65850f6d78c2554 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 9 Sep 2008 11:25:45 +0000 Subject: [PATCH] MDL-16391 - forum posts with no attachments get to be PORTFOLIO_FORMAT_HTML --- mod/forum/lib.php | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.5