aboutsummaryrefslogtreecommitdiff
path: root/views/default/icon/default.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
committercash <cash.costello@gmail.com>2011-11-16 19:53:04 -0500
commit5ae9e93b57bdc6744198538153b84bed4a34e960 (patch)
treed8314be7c594087d69ef0dcb716ab1255323a758 /views/default/icon/default.php
parentc75ee6f8807e34d3d9c4c941e6d0e656a5b1b9b3 (diff)
downloadelgg-5ae9e93b57bdc6744198538153b84bed4a34e960.tar.gz
elgg-5ae9e93b57bdc6744198538153b84bed4a34e960.tar.bz2
Fixes #4082 adds output/img
Diffstat (limited to 'views/default/icon/default.php')
-rw-r--r--views/default/icon/default.php7
1 files changed, 5 insertions, 2 deletions
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 = "<img $class src=\"$img_src\" alt=\"$title\" />";
+$img = elgg_view('output/img', array(
+ 'src' => $entity->getIconURL($vars['size']),
+ 'alt' => $title,
+ 'class' => $class,
+));
if ($url) {
$params = array(