From f4774f44d181d9484d404bbdfc380608187ac2f9 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 14 Aug 2014 13:06:15 +1200 Subject: [PATCH] MDL-46816 mod_asssign plagiarism: Remove unnecessary code. --- mod/assign/renderable.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/mod/assign/renderable.php b/mod/assign/renderable.php index b6b004a4039..021cad2794e 100644 --- a/mod/assign/renderable.php +++ b/mod/assign/renderable.php @@ -780,26 +780,6 @@ class assign_files implements renderable { } - // Plagiarism check if it is enabled. - $output = ''; - if (!empty($CFG->enableplagiarism)) { - require_once($CFG->libdir . '/plagiarismlib.php'); - - // For plagiarism_get_links. - $assignment = new assign($this->context, null, null); - foreach ($files as $file) { - - $linkparams = array('userid' => $sid, - 'file' => $file, - 'cmid' => $this->cm->id, - 'course' => $this->course, - 'assignment' => $assignment->get_instance()); - $output .= plagiarism_get_links($linkparams); - - $output .= '
'; - } - } - $this->preprocess($this->dir, $filearea, $component); }