aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search/views/default')
-rw-r--r--mod/search/views/default/search/comments/listing.php8
-rw-r--r--mod/search/views/default/search/listing.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/mod/search/views/default/search/comments/listing.php b/mod/search/views/default/search/comments/listing.php
index 943b65d76..55f8fed60 100644
--- a/mod/search/views/default/search/comments/listing.php
+++ b/mod/search/views/default/search/comments/listing.php
@@ -55,10 +55,10 @@ echo $nav;
$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));
+ $owner = get_entity($entity->getVolatileData('search_matched_comment_owner_guid'));
+
+ if ($owner instanceof ElggUser) {
+ $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'small'));
} else {
$icon = '';
}
diff --git a/mod/search/views/default/search/listing.php b/mod/search/views/default/search/listing.php
index b2ce79924..a747f43e5 100644
--- a/mod/search/views/default/search/listing.php
+++ b/mod/search/views/default/search/listing.php
@@ -98,9 +98,9 @@ $body = elgg_view_title($type_str);
foreach ($entities as $entity) {
if ($owner = $entity->getOwnerEntity()) {
- $icon = elgg_view('profile/icon', array('entity' => $owner));
+ $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'small'));
} elseif ($entity instanceof ElggUser) {
- $icon = elgg_view('profile/icon', array('entity' => $entity));
+ $icon = elgg_view('profile/icon', array('entity' => $entity, 'size' => 'small'));
} else {
$icon = '';
}