NOBUG: Workshop submission attachments are displayed with the path, not just filename
This commit is contained in:
@@ -237,7 +237,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
||||
$type = mimeinfo_from_type("type", $type);
|
||||
$image = html_writer::empty_tag('img', array('src'=>$this->output->pix_url(file_mimetype_icon($type)), 'alt'=>$type, 'class'=>'icon'));
|
||||
|
||||
$linkhtml = html_writer::link($fileurl, $image) . html_writer::link($fileurl, $filename);
|
||||
$linkhtml = html_writer::link($fileurl, $image) . substr($filepath, 1) . html_writer::link($fileurl, $filename);
|
||||
$linktxt = "$filename [$fileurl]";
|
||||
|
||||
if ($format == "html") {
|
||||
|
||||
Reference in New Issue
Block a user