MDL-46816 mod_asssign plagiarism: Remove unnecessary code.

This commit is contained in:
Dan Marsden 2014-08-14 13:06:15 +12:00
parent e609e6cf02
commit f4774f44d1

View File

@ -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 .= '<br />';
}
}
$this->preprocess($this->dir, $filearea, $component);
}