Skip to content

Commit

Permalink
Merge branch 'MDL-49674-master-commentformat' of git://github.com/mud…
Browse files Browse the repository at this point in the history
…rd8mz/moodle
  • Loading branch information
danpoltawski committed Mar 31, 2015
2 parents deadda2 + 2b6f97f commit 90748df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public function add($content, $format = FORMAT_MOODLE) {
$newcmt->fullname = fullname($USER);
$url = new moodle_url('/user/view.php', array('id' => $USER->id, 'course' => $this->courseid));
$newcmt->profileurl = $url->out();
$newcmt->content = format_text($newcmt->content, $format, array('overflowdiv'=>true));
$newcmt->content = format_text($newcmt->content, $newcmt->format, array('overflowdiv'=>true));
$newcmt->avatar = $OUTPUT->user_picture($USER, array('size'=>16));

$commentlist = array($newcmt);
Expand Down

0 comments on commit 90748df

Please sign in to comment.