From 20b503841bf846b120d36a7a753d2e5514afe0e1 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Wed, 27 Apr 2011 11:39:01 +0800 Subject: [PATCH] MDL-25840 blog - fixed broken image file image attachment display --- blog/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/locallib.php b/blog/locallib.php index 1cc4b0c71f517..77d2ffddbc990 100644 --- a/blog/locallib.php +++ b/blog/locallib.php @@ -517,7 +517,7 @@ public function print_attachments($return=false) { } else { if (in_array($type, array('image/gif', 'image/jpeg', 'image/png'))) { // Image attachments don't get printed as links - $imagereturn .= "
" . $OUTPUT->pix_icon($ffurl, $filename); + $imagereturn .= '
'; } else { $imagereturn .= html_writer::link($ffurl, $image); $imagereturn .= format_text(html_writer::link($ffurl, $filename), FORMAT_HTML, array('context'=>$syscontext));