Skip to content
Browse files

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

  • Loading branch information...
1 parent 4452ed6 commit 20b503841bf846b120d36a7a753d2e5514afe0e1 @nebgor nebgor committed Apr 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/locallib.php
View
2 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 .= "<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));

0 comments on commit 20b5038

Please sign in to comment.
Something went wrong with that request. Please try again.