Skip to content

Commit

Permalink
MDL-27372 moved blog comments to end of body of blog entry. we now se…
Browse files Browse the repository at this point in the history
…e the entire blog entry without comments in the way.
  • Loading branch information
Aparup Banerjee committed May 5, 2011
1 parent 156816d commit fce7424
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blog/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit fce7424

Please sign in to comment.