Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
using new list methods in tabbed profile plugin
Browse files Browse the repository at this point in the history
git-svn-id: http://code.elgg.org/elgg/trunk/mod/tabbed_profile@7716 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information
cash committed Dec 23, 2010
1 parent b870986 commit 2ab8e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions views/default/profile/tabs/friends.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
Expand Down
8 changes: 1 addition & 7 deletions views/default/profile/tabs/groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
Expand Down

0 comments on commit 2ab8e80

Please sign in to comment.