Skip to content
Permalink
Browse files

Merge branch 'mdl-29564-assignment-plagiarism' of git://github.com/sb…

…ourget/moodle into MOODLE_21_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Oct 9, 2011
2 parents c61c509 + b801633 commit 430ce6cca3cd4a6355e4f96b6ab3e6fbfe88f5a1
Showing with 6 additions and 2 deletions.
  1. +6 −2 mod/assignment/lib.php
@@ -1922,8 +1922,12 @@ function print_user_files($userid=0, $return=false) {
$button->set_format_by_file($file);
$output .= $button->to_html(PORTFOLIO_ADD_ICON_LINK);
}
$output .= plagiarism_get_links(array('userid'=>$userid, 'file'=>$file, 'cmid'=>$this->cm->id, 'course'=>$this->course, 'assignment'=>$this->assignment));
$output .= '<br />';
if ($CFG->enableplagiarism) {
require_once($CFG->libdir.'/plagiarismlib.php');
$output .= plagiarism_get_links(array('userid'=>$userid, 'file'=>$file, 'cmid'=>$this->cm->id, 'course'=>$this->course, 'assignment'=>$this->assignment));
$output .= '<br />';
}
}
if ($CFG->enableportfolios && count($files) > 1 && $this->portfolio_exportable() && has_capability('mod/assignment:exportownsubmission', $this->context)) {
$button->set_callback_options('assignment_portfolio_caller', array('id' => $this->cm->id, 'submissionid' => $submission->id), '/mod/assignment/locallib.php');

0 comments on commit 430ce6c

Please sign in to comment.
You can’t perform that action at this time.