Skip to content

Commit

Permalink
MDL-37972 Assignment: fixing settings link for upload single submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
samchaffee authored and jsnfwlr committed Dec 10, 2013
1 parent 98f4a31 commit bf139ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/type/uploadsingle/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function extend_settings_navigation($node) {
foreach ($files as $file) {
$filename = $file->get_filename();
$mimetype = $file->get_mimetype();
$link = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$this->context->id.'/mod_assignment', 'submission/'.$submission->id.'/'.$filename);
$link = moodle_url::make_pluginfile_url($this->context->id, 'mod_assignment', 'submission', $submission->id, $file->get_filepath(), $filename);
$filenode->add($filename, $link, navigation_node::TYPE_SETTING, null, null, new pix_icon(file_file_icon($file), ''));
}
}
Expand Down

0 comments on commit bf139ab

Please sign in to comment.