Permalink
Browse files

MDL-28155 mod_assignment Using the this object instead of a string

  • Loading branch information...
1 parent b5b7d9d commit 0652b34fde26325a8e91b396585dbf8d47a44fd4 @dmonllao dmonllao committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/lib.php
@@ -1591,7 +1591,7 @@ function display_submissions($message='') {
}
$currentposition++;
}
- if ($hassubmission && method_exists('assignment_'.$this->assignment->assignmenttype, 'download_submissions')) {
+ 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 0652b34

Please sign in to comment.