mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-46816 mod_asssign plagiarism: Remove unnecessary code.
This commit is contained in:
parent
e609e6cf02
commit
f4774f44d1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user