aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r--mod/groups/views/default/groups/invitationrequests.php7
-rw-r--r--mod/groups/views/default/groups/membershiprequests.php6
-rw-r--r--mod/groups/views/default/object/groupforumtopic.php2
3 files changed, 4 insertions, 11 deletions
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'])) {
<div class="elgg-image-block group_invitations clearfix">
<?php
echo "<div class='elgg-image'>";
- echo elgg_view("profile/icon", array(
- 'entity' => $group,
- 'size' => 'tiny',
- 'override' => 'true'
- ))."</div>";
+ echo elgg_view_entity_icon($group, 'tiny', array('override' => 'true'));
+ echo "</div>";
$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 @@
<div class="elgg-image-block group_invitations clearfix">
<?php
echo "<div class='elgg-image'>";
- echo elgg_view("profile/icon", array(
- 'entity' => $request,
- 'size' => 'small',
- 'override' => 'true'
- ));
+ echo elgg_view_entity_icon($request, 'small', array('override' => 'true'));
echo "</div>";
$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,