Skip to content
Permalink
Browse files

MDL-37972 Assignment: fixing settings link for upload single submissions

  • Loading branch information...
samchaffee authored and jsnfwlr committed Dec 10, 2013
1 parent cf0e970 commit 46a9498f62356a86966abacc469a6c6e030394f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/type/uploadsingle/assignment.class.php
@@ -378,7 +378,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), ''));
}
}

0 comments on commit 46a9498

Please sign in to comment.
You can’t perform that action at this time.