aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-30 17:02:26 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-30 17:02:26 +0000
commitd403e2beae84ce881bedd3d0883fefe897c2c73a (patch)
treead532ad6050ee6f4a7cae9fa7b3ccc9a7da02b6a /mod
parent62ae56cfec15f2fb11bf9fb61fe6af582cff3210 (diff)
downloadelgg-d403e2beae84ce881bedd3d0883fefe897c2c73a.tar.gz
elgg-d403e2beae84ce881bedd3d0883fefe897c2c73a.tar.bz2
Listings use profile/icon view instead of calling icon directly.
git-svn-id: http://code.elgg.org/elgg/trunk@3709 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/search/views/default/search/comments/listing.php3
-rw-r--r--mod/search/views/default/search/listing.php3
-rw-r--r--mod/search/views/default/search/tags/listing.php3
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 = '';
}