Permalink
Browse files

MDL-27372 moved blog comments to end of body of blog entry. we now se…

…e the entire blog entry without comments in the way.
  • Loading branch information...
1 parent 8351ce1 commit 5e00f29019c071d7fe676f832fa27a82aa21f926 @nebgor nebgor committed May 5, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 blog/locallib.php
View
@@ -117,7 +117,7 @@ public function print_html($return=false) {
$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 @@ public function print_html($return=false) {
$contentcell->text .= '</div>';
}
+ //add comments under everything
+ $contentcell->text .= $cmttext;
+
$mainrow->cells[] = $contentcell;
$table->data = array($mainrow);

0 comments on commit 5e00f29

Please sign in to comment.