From fce7424bebfe2b22677a9909a846535296be1805 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Thu, 5 May 2011 15:27:38 +0800 Subject: [PATCH] MDL-27372 moved blog comments to end of body of blog entry. we now see the entire blog entry without comments in the way. --- blog/locallib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blog/locallib.php b/blog/locallib.php index 77d2ffddbc9..51afba8b1f6 100644 --- a/blog/locallib.php +++ b/blog/locallib.php @@ -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 .= ''; } + //add comments under everything + $contentcell->text .= $cmttext; + $mainrow->cells[] = $contentcell; $table->data = array($mainrow);