mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'master_MDL-46816' of https://github.com/danmarsden/moodle
This commit is contained in:
commit
40f1dff05f
@ -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