Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ public function raw_post_subject($post) {
* @author Mark Nielsen
*/
public function post_message($post, $cm, $search = '') {
global $OUTPUT;
global $OUTPUT, $CFG;

$options = new stdClass;
$options->para = false;
Expand All @@ -1200,7 +1200,13 @@ public function post_message($post, $cm, $search = '') {
if (!empty($search)) {
$postcontent = highlight($search, $postcontent);
}

if (!empty($CFG->enableplagiarism)) {
require_once($CFG->libdir.'/plagiarismlib.php');
$postcontent .= plagiarism_get_links(array('userid' => $post->userid,
'content' => $post->message,
'cmid' => $cm->id,
'course' => $cm->course));
}
if (!empty($attachments)) {
$postcontent .= "<div class='attachments'>".$attachments."</div>";
}
Expand Down