Skip to content

Commit

Permalink
MDL-46816 mod_asssign plagiarism: Remove unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Aug 21, 2014
1 parent e609e6c commit f4774f4
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions mod/assign/renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,26 +780,6 @@ public function __construct(context $context, $sid, $filearea, $component) {

}

// 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);
}

Expand Down

0 comments on commit f4774f4

Please sign in to comment.