mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
Merge branch 'm26_MDL-46816' of https://github.com/danmarsden/moodle into MOODLE_26_STABLE
This commit is contained in:
commit
49f1a64cb0
1 changed files with 0 additions and 20 deletions
|
@ -760,26 +760,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);
|
$this->preprocess($this->dir, $filearea, $component);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue