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:
+4
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user