aboutsummaryrefslogtreecommitdiff
path: root/mod/tabbed_profile/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tabbed_profile/views/default')
-rwxr-xr-xmod/tabbed_profile/views/default/profile/tabs/friends.php8
-rw-r--r--mod/tabbed_profile/views/default/profile/tabs/groups.php8
2 files changed, 2 insertions, 14 deletions
diff --git a/mod/tabbed_profile/views/default/profile/tabs/friends.php b/mod/tabbed_profile/views/default/profile/tabs/friends.php
index 8b3171405..0871d3e3a 100755
--- a/mod/tabbed_profile/views/default/profile/tabs/friends.php
+++ b/mod/tabbed_profile/views/default/profile/tabs/friends.php
@@ -3,13 +3,7 @@
* Profile friends
*/
-$options = array(
- 'relationship_guid' => $vars['entity']->getGUID(),
- 'relationship' => 'friend',
- 'inverse_relationship' => false,
- 'full_view' => false,
-);
-$friends = elgg_list_entities_from_relationship($options);
+$friends = $vars['entity']->listFriends();
if (!$friends) {
$friends = '<p>' . elgg_echo('profile:no_friends') . '</p>';
diff --git a/mod/tabbed_profile/views/default/profile/tabs/groups.php b/mod/tabbed_profile/views/default/profile/tabs/groups.php
index f2746a655..bb5467a17 100644
--- a/mod/tabbed_profile/views/default/profile/tabs/groups.php
+++ b/mod/tabbed_profile/views/default/profile/tabs/groups.php
@@ -3,13 +3,7 @@
* Profile groups
*/
-$options = array(
- 'relationship_guid' => $vars['entity']->getGUID(),
- 'relationship' => 'member',
- 'inverse_relationship' => false,
- 'full_view' => false,
-);
-$groups = elgg_list_entities_from_relationship($options);
+$groups = $vars['entity']->listGroups();
if (!$groups) {
$groups = '<p>' . elgg_echo('profile:no_groups') . '</p>';