aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views')
-rw-r--r--mod/groups/views/default/group/default.php7
-rw-r--r--mod/groups/views/default/groups/profile/profile_block.php7
2 files changed, 3 insertions, 11 deletions
diff --git a/mod/groups/views/default/group/default.php b/mod/groups/views/default/group/default.php
index 568867da9..d025a894b 100644
--- a/mod/groups/views/default/group/default.php
+++ b/mod/groups/views/default/group/default.php
@@ -1,16 +1,13 @@
<?php
/**
- * Elgg groups profile display
+ * Group entity view
*
* @package ElggGroups
*/
$group = $vars['entity'];
-$icon = elgg_view("groups/icon", array(
- 'entity' => $group,
- 'size' => 'tiny',
-));
+$icon = elgg_view_entity_icon($group, 'tiny');
//get the membership type
$membership = $group->membership;
diff --git a/mod/groups/views/default/groups/profile/profile_block.php b/mod/groups/views/default/groups/profile/profile_block.php
index 98595ad07..a0d41ba14 100644
--- a/mod/groups/views/default/groups/profile/profile_block.php
+++ b/mod/groups/views/default/groups/profile/profile_block.php
@@ -21,12 +21,7 @@ $profile_fields = elgg_get_config('group');
<div class="group_profile clearfix">
<div class="group_profile_column icon">
<div class="group_profile_icon">
- <?php
- echo elgg_view('groups/icon', array(
- 'entity' => $group,
- 'size' => 'large',
- ));
- ?>
+ <?php echo elgg_view_entity_icon($group, 'large', array('href' => '')); ?>
</div>
<div class="group_stats">
<p>