mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
workshop: fixed link to the attachment in a folder
This commit is contained in:
parent
d183140de8
commit
aa6610f31b
@ -262,9 +262,10 @@ class moodle_mod_workshop_renderer extends moodle_renderer_base {
|
||||
continue;
|
||||
}
|
||||
|
||||
$filepath = $file->get_filepath();
|
||||
$filename = $file->get_filename();
|
||||
$fileurl = file_encode_url($CFG->wwwroot . '/pluginfile.php',
|
||||
'/' . $ctx->id . '/workshop_submission_attachment/' . $submission->id . '/' . $filename, true);
|
||||
'/' . $ctx->id . '/workshop_submission_attachment/' . $submission->id . $filepath . $filename, true);
|
||||
$type = $file->get_mimetype();
|
||||
$type = mimeinfo_from_type("type", $type);
|
||||
$icon = new html_image();
|
||||
|
Loading…
x
Reference in New Issue
Block a user