From 1786bdfe37c2636a6a1d3c96d42fb5dc65c13870 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 30 Nov 2009 20:33:50 +0000 Subject: If a search result returns a user, make the icon be for the user and not the owner (which is no one) git-svn-id: http://code.elgg.org/elgg/trunk@3710 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/views/default/search/comments/listing.php | 2 ++ mod/search/views/default/search/listing.php | 2 ++ 2 files changed, 4 insertions(+) (limited to 'mod') diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php index bfefe29a6..943b65d76 100644 --- a/mod/search/views/default/search/comments/listing.php +++ b/mod/search/views/default/search/comments/listing.php @@ -57,6 +57,8 @@ $body = elgg_view_title($title_str); foreach ($vars['entities'] as $entity) { if ($owner = $entity->getOwnerEntity()) { $icon = elgg_view('profile/icon', array('entity' => $owner)); + } elseif ($entity instanceof ElggUser) { + $icon = elgg_view('profile/icon', array('entity' => $entity)); } else { $icon = ''; } diff --git a/mod/search/views/default/search/listing.php b/mod/search/views/default/search/listing.php index becf2bf8e..45c45ffee 100644 --- a/mod/search/views/default/search/listing.php +++ b/mod/search/views/default/search/listing.php @@ -66,6 +66,8 @@ $body = elgg_view_title($type_str); foreach ($entities as $entity) { if ($owner = $entity->getOwnerEntity()) { $icon = elgg_view('profile/icon', array('entity' => $owner)); + } elseif ($entity instanceof ElggUser) { + $icon = elgg_view('profile/icon', array('entity' => $entity)); } else { $icon = ''; } -- cgit v1.2.3