From f22b65ccceb95ae55619f34f04bb9955ff07574e Mon Sep 17 00:00:00 2001 From: ewinslow Date: Fri, 25 Feb 2011 20:00:37 +0000 Subject: Converted all uses of profile/icon in core + plugins to elgg_view_entity_icon git-svn-id: http://code.elgg.org/elgg/trunk@8471 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/groups/invitationrequests.php | 7 ++----- mod/groups/views/default/groups/membershiprequests.php | 6 +----- mod/groups/views/default/object/groupforumtopic.php | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) (limited to 'mod/groups/views') diff --git a/mod/groups/views/default/groups/invitationrequests.php b/mod/groups/views/default/groups/invitationrequests.php index 2ede81bc5..60a0ec853 100644 --- a/mod/groups/views/default/groups/invitationrequests.php +++ b/mod/groups/views/default/groups/invitationrequests.php @@ -9,11 +9,8 @@ if (!empty($vars['invitations']) && is_array($vars['invitations'])) {
"; - echo elgg_view("profile/icon", array( - 'entity' => $group, - 'size' => 'tiny', - 'override' => 'true' - ))."
"; + echo elgg_view_entity_icon($group, 'tiny', array('override' => 'true')); + echo ""; $url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/groups/join?user_guid={$user->guid}&group_guid={$group->guid}"); ?> diff --git a/mod/groups/views/default/groups/membershiprequests.php b/mod/groups/views/default/groups/membershiprequests.php index 15ed3b258..303b9aad1 100644 --- a/mod/groups/views/default/groups/membershiprequests.php +++ b/mod/groups/views/default/groups/membershiprequests.php @@ -9,11 +9,7 @@
"; - echo elgg_view("profile/icon", array( - 'entity' => $request, - 'size' => 'small', - 'override' => 'true' - )); + echo elgg_view_entity_icon($request, 'small', array('override' => 'true')); echo "
"; $url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/groups/addtogroup?user_guid={$request->guid}&group_guid={$vars['entity']->guid}"); diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index 864e8e608..d1c6005ff 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -16,7 +16,7 @@ $poster = $topic->getOwnerEntity(); $group = $topic->getContainerEntity(); $excerpt = elgg_get_excerpt($topic->description); -$poster_icon = elgg_view('profile/icon', array('entity' => $poster, 'size' => 'tiny')); +$poster_icon = elgg_view_entity_icon($poster, 'tiny'); $poster_link = elgg_view('output/url', array( 'href' => $poster->getURL(), 'text' => $poster->name, -- cgit v1.2.3