NOBUG: Workshop submission attachments are displayed with the path, not just filename

This commit is contained in:
David Mudrak
2010-06-08 23:09:49 +00:00
parent abfe7c34d8
commit 788335acd4
+1 -1
View File
@@ -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") {