Permalink
Browse files

Merge branch 'MDL-28155_23' of git://github.com/dmonllao/moodle into …

…MOODLE_23_STABLE
  • Loading branch information...
2 parents 828a42c + c465776 commit 8f87d57c471596f6eac06a404987017b2f96ed75 Sam Hemelryk committed Jul 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
View
@@ -1591,7 +1591,7 @@ function display_submissions($message='') {
}
$currentposition++;
}
- if ($hassubmission && ($this->assignment->assignmenttype=='upload' || $this->assignment->assignmenttype=='online' || $this->assignment->assignmenttype=='uploadsingle')) { //TODO: this is an ugly hack, where is the plugin spirit? (skodak)
+ if ($hassubmission && method_exists($this, 'download_submissions')) {
echo html_writer::start_tag('div', array('class' => 'mod-assignment-download-link'));
echo html_writer::link(new moodle_url('/mod/assignment/submissions.php', array('id' => $this->cm->id, 'download' => 'zip')), get_string('downloadall', 'assignment'));
echo html_writer::end_tag('div');

0 comments on commit 8f87d57

Please sign in to comment.