]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16391 - forum posts with no attachments get to be PORTFOLIO_FORMAT_HTML
authormjollnir_ <mjollnir_>
Tue, 9 Sep 2008 11:25:45 +0000 (11:25 +0000)
committermjollnir_ <mjollnir_>
Tue, 9 Sep 2008 11:25:45 +0000 (11:25 +0000)
mod/forum/lib.php

index 4db7d2f6aa6ddf0c9bc05ed844122a36810c70b8..c7afd49075826b9d1d36ffc8487824ccd159e299 100644 (file)
@@ -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) {