aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-02 16:54:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-02 16:54:25 +0000
commitd026adfe0ba3f97f009976ce80203dfcb037d14a (patch)
treec920ae960befc7e0130b48458a9db8f4ea7bc733
parent5ef01b0a872ee5846240d7a4900cf374d645ea3a (diff)
downloadelgg-d026adfe0ba3f97f009976ce80203dfcb037d14a.tar.gz
elgg-d026adfe0ba3f97f009976ce80203dfcb037d14a.tar.bz2
Changed avatar size to small in search results.
Fixed a bug so comment owners' avatars show up instead of commented entity's owners' avatars. git-svn-id: http://code.elgg.org/elgg/trunk@3714 36083f99-b078-4883-b0ff-0f9b5a30f544
-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 = '';
}