aboutsummaryrefslogtreecommitdiff
path: root/mod/search/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 22:46:47 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 22:46:47 +0000
commit7be26eab54af016c2f64b2316141d40955c6c2f6 (patch)
tree876bef678df3c0893859b7f402660074a57d3f57 /mod/search/views
parent90a5804aca9fb7730ac026f4362753013f3df249 (diff)
downloadelgg-7be26eab54af016c2f64b2316141d40955c6c2f6.tar.gz
elgg-7be26eab54af016c2f64b2316141d40955c6c2f6.tar.bz2
removing old entities views that are no longer needed and did the last changes for the icon system
git-svn-id: http://code.elgg.org/elgg/trunk@8054 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/search/views')
-rw-r--r--mod/search/views/default/search/entity.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/mod/search/views/default/search/entity.php b/mod/search/views/default/search/entity.php
index d93a603eb..a967853a3 100644
--- a/mod/search/views/default/search/entity.php
+++ b/mod/search/views/default/search/entity.php
@@ -22,17 +22,13 @@ if (!$icon) {
// @todo allow an option to switch to displaying the entity's icon instead.
$type = $entity->getType();
if ($type == 'user' || $type == 'group') {
- $icon = elgg_view('profile/icon', array('entity' => $entity, 'size' => 'tiny'));
+ $icon = elgg_view_entity_icon($entity, 'tiny');
} elseif ($owner = $entity->getOwnerEntity()) {
- $icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny'));
+ $icon = elgg_view_entity_icon($owner, 'tiny');
} else {
// display a generic icon if no owner, though there will probably be
// other problems if the owner can't be found.
- $icon = elgg_view(
- 'graphics/icon', array(
- 'entity' => $entity,
- 'size' => 'tiny',
- ));
+ $icon = elgg_view_entity($entity, 'tiny');
}
}