MDL-25840 blog - fixed broken image file image attachment display

This commit is contained in:
Aparup Banerjee
2011-05-03 01:14:16 +02:00
committed by Eloy Lafuente (stronk7)
parent 98032d512d
commit 07fa10d725
+1 -1
View File
@@ -517,7 +517,7 @@ class blog_entry {
} else {
if (in_array($type, array('image/gif', 'image/jpeg', 'image/png'))) { // Image attachments don't get printed as links
$imagereturn .= "<br />" . $OUTPUT->pix_icon($ffurl, $filename);
$imagereturn .= '<br /><img src="'.$ffurl.'" alt="" />';
} else {
$imagereturn .= html_writer::link($ffurl, $image);
$imagereturn .= format_text(html_writer::link($ffurl, $filename), FORMAT_HTML, array('context'=>$syscontext));