Merge branch 'MDL-48723_master_forum-plagiarism_errors' of git://github.com/colin...
authorDavid Monllao <davidm@moodle.com>
Fri, 17 Apr 2015 02:41:20 +0000 (10:41 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 17 Apr 2015 02:41:20 +0000 (10:41 +0800)
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 />';
             }
         }