]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16072 fixed html type attachemnt embedding
authorskodak <skodak>
Sun, 17 Aug 2008 18:33:25 +0000 (18:33 +0000)
committerskodak <skodak>
Sun, 17 Aug 2008 18:33:25 +0000 (18:33 +0000)
mod/forum/lib.php

index abc6ca18564b117bed2fb527087159a211238e9b..b13f3e11f54c2f2067f2e32b583a7a49aab1a6dc 100644 (file)
@@ -3854,7 +3854,7 @@ function forum_print_attachments($post, $cm, $type) {
 
             if ($type == 'html') {
                 $output .= "<a href=\"$path\">$iconimage</a> ";
-                $output .= "<a href=\"$path\">$file</a>";
+                $output .= "<a href=\"$path\">".s($filename)."</a>";
                 if (true) { // 'todo penny replace this with a capability check
                     require_once($CFG->libdir . '/portfoliolib.php');
                     $p = array(