Permalink
Browse files

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

…MOODLE_22_STABLE
  • Loading branch information...
2 parents aa83dea + ac430a0 commit a9fb701ad52d7640e5ec68825704b9b3eaee74c3 Sam Hemelryk committed Jul 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
@@ -1584,7 +1584,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 a9fb701

Please sign in to comment.