diff --git a/comment/lib.php b/comment/lib.php index cea8c66a6d6..6adc52f75d7 100644 --- a/comment/lib.php +++ b/comment/lib.php @@ -656,7 +656,7 @@ class comment { $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);