Permalink
Browse files

MDL-27810 portfolio: Added ->portfolioenabled check to one more place

  • Loading branch information...
1 parent 555cc4b commit 6057bf5b05c5dcb1a2eb631c95a82c60508554e6 @stronk7 stronk7 committed Jun 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
@@ -1892,7 +1892,7 @@ function print_user_files($userid=0, $return=false) {
$output .= plagiarism_get_links(array('userid'=>$userid, 'file'=>$file, 'cmid'=>$this->cm->id, 'course'=>$this->course, 'assignment'=>$this->assignment));
$output .= '<br />';
}
- if (count($files) > 1 && $this->portfolio_exportable() && has_capability('mod/assignment:exportownsubmission', $this->context)) {
+ 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), '/mod/assignment/locallib.php');
$output .= '<br />' . $button->to_html();
}

0 comments on commit 6057bf5

Please sign in to comment.