Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-37972-24' of git://github.com/phalacee/moodle into …

…MOODLE_24_STABLE
  • Loading branch information...
commit 5df656cadd71249ea9b20f428dbb0fec48c17706 2 parents 6a68b92 + bf139ab
@marinaglancy marinaglancy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/type/uploadsingle/assignment.class.php
View
2  mod/assignment/type/uploadsingle/assignment.class.php
@@ -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), ''));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.