MDL-27372 moved blog comments to end of body of blog entry. we now see the entire...
authorAparup Banerjee <aparup@moodle.com>
Thu, 5 May 2011 07:27:38 +0000 (15:27 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 5 May 2011 07:27:38 +0000 (15:27 +0800)
blog/locallib.php

index 77d2ffd..51afba8 100644 (file)
@@ -117,7 +117,7 @@ class blog_entry {
         $this->summary = file_rewrite_pluginfile_urls($this->summary, 'pluginfile.php', SYSCONTEXTID, 'blog', 'post', $this->id);
 
         $options = array('overflowdiv'=>true);
-        $template['body'] = format_text($this->summary, $this->summaryformat, $options).$cmttext;
+        $template['body'] = format_text($this->summary, $this->summaryformat, $options);
         $template['title'] = format_string($this->subject);
         $template['userid'] = $user->id;
         $template['author'] = fullname($user);
@@ -307,6 +307,9 @@ class blog_entry {
             $contentcell->text .= '</div>';
         }
 
+        //add comments under everything
+        $contentcell->text .= $cmttext;
+
         $mainrow->cells[] = $contentcell;
         $table->data = array($mainrow);