MDL-27372 moved blog comments to end of body of blog entry. we now see the entire blog entry without comments in the way.

This commit is contained in:
Aparup Banerjee
2011-05-05 15:27:38 +08:00
parent 156816d0b5
commit fce7424beb
+4 -1
View 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);