From 5ae9e93b57bdc6744198538153b84bed4a34e960 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 13 Nov 2011 16:22:57 -0500 Subject: Fixes #4082 adds output/img --- views/default/icon/default.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'views/default/icon/default.php') diff --git a/views/default/icon/default.php b/views/default/icon/default.php index ec39e59f2..22c20b3a7 100644 --- a/views/default/icon/default.php +++ b/views/default/icon/default.php @@ -34,8 +34,11 @@ if (isset($vars['href'])) { $url = $vars['href']; } -$img_src = $entity->getIconURL($vars['size']); -$img = "\"$title\""; +$img = elgg_view('output/img', array( + 'src' => $entity->getIconURL($vars['size']), + 'alt' => $title, + 'class' => $class, +)); if ($url) { $params = array( -- cgit v1.2.3