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 Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
commit6483d9d446e7fa50e16823fe20514a45416880e2 (patch)
tree68c5bb2e6a0b7b486e17f1101321323e7894a008 /views/default/icon/default.php
parent95346209886527207ffd036a58d6fd50572d34fd (diff)
downloadelgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.gz
elgg-6483d9d446e7fa50e16823fe20514a45416880e2.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(