Merge branch 'MDL-48723_master_forum-plagiarism_errors' of git://github.com/colin...
[moodle.git] / mod / forum / lib.php
index e48041f..bf0013a 100644 (file)
@@ -4094,8 +4094,8 @@ function forum_print_attachments($post, $cm, $type) {
                 $output .= plagiarism_get_links(array('userid' => $post->userid,
                     'file' => $file,
                     'cmid' => $cm->id,
-                    'course' => $post->course,
-                    'forum' => $post->forum));
+                    'course' => $cm->course,
+                    'forum' => $cm->instance));
                 $output .= '<br />';
             }
         }