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...
nebgor committed May 5, 2011
1 parent 156816d commit fce7424bebfe2b22677a9909a846535296be1805
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 fce7424

Please sign in to comment.