diff options
-rw-r--r-- | mod/search/views/default/search/comments/listing.php | 3 | ||||
-rw-r--r-- | mod/search/views/default/search/listing.php | 3 | ||||
-rw-r--r-- | mod/search/views/default/search/tags/listing.php | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php index b3c8da5cf..bfefe29a6 100644 --- a/mod/search/views/default/search/comments/listing.php +++ b/mod/search/views/default/search/comments/listing.php @@ -56,8 +56,7 @@ $body = elgg_view_title($title_str); foreach ($vars['entities'] as $entity) { if ($owner = $entity->getOwnerEntity()) { - $owner_icon = $owner->getIcon('tiny'); - $icon = "<img src=\"$owner_icon\" />"; + $icon = elgg_view('profile/icon', array('entity' => $owner)); } else { $icon = ''; } diff --git a/mod/search/views/default/search/listing.php b/mod/search/views/default/search/listing.php index c8551b9a4..becf2bf8e 100644 --- a/mod/search/views/default/search/listing.php +++ b/mod/search/views/default/search/listing.php @@ -65,8 +65,7 @@ $body = elgg_view_title($type_str); foreach ($entities as $entity) { if ($owner = $entity->getOwnerEntity()) { - $owner_icon = $owner->getIcon('tiny'); - $icon = "<img src=\"$owner_icon\" />"; + $icon = elgg_view('profile/icon', array('entity' => $owner)); } else { $icon = ''; } diff --git a/mod/search/views/default/search/tags/listing.php b/mod/search/views/default/search/tags/listing.php index 075487295..89b96b5a4 100644 --- a/mod/search/views/default/search/tags/listing.php +++ b/mod/search/views/default/search/tags/listing.php @@ -47,8 +47,7 @@ $body = elgg_view_title(elgg_echo('tags')); foreach ($entities as $entity) { if ($owner = $entity->getOwnerEntity()) { - $owner_icon = $owner->getIcon('tiny'); - $icon = "<img src=\"$owner_icon\" />"; + $icon = elgg_view('profile/icon', array('entity' => $owner)); } else { $icon = ''; } |