diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-17 12:23:22 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-17 12:23:22 +0000 |
commit | 66b0b9fe69ed698249b35ccfa8b601110fa99964 (patch) | |
tree | 046cfd1b601d6bf9dfe706672a33f346707ed8f9 /pages | |
parent | 29846c35e6ddf2f3a3a8cfa2da96470d4bb25325 (diff) | |
download | elgg-66b0b9fe69ed698249b35ccfa8b601110fa99964.tar.gz elgg-66b0b9fe69ed698249b35ccfa8b601110fa99964.tar.bz2 |
Refs #1411 using new elgg_list* functions in friends page handlers
git-svn-id: http://code.elgg.org/elgg/trunk@7331 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages')
-rw-r--r-- | pages/friends/index.php | 9 | ||||
-rw-r--r-- | pages/friends/of.php | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/pages/friends/index.php b/pages/friends/index.php index 916f248d9..13799e973 100644 --- a/pages/friends/index.php +++ b/pages/friends/index.php @@ -17,7 +17,14 @@ $title = elgg_echo("friends:owned", array($owner->name)); $content = elgg_view_title($title); -$content .= list_entities_from_relationship('friend', $owner->getGUID(), FALSE, 'user', '', 0, 10, FALSE); +$options = array( + 'relationship' => 'friend', + 'relationship_guid' => $owner->getGUID(), + 'inverse_relationship' => FALSE, + 'type' => 'user', + 'full_view' => FALSE +); +$content .= elgg_list_entities_from_relationship($options); $body = elgg_view_layout('one_column_with_sidebar', array('content' => $content)); diff --git a/pages/friends/of.php b/pages/friends/of.php index 501b0ad2e..66cda587d 100644 --- a/pages/friends/of.php +++ b/pages/friends/of.php @@ -17,7 +17,14 @@ $title = elgg_echo("friends:of:owned", array($owner->name)); $content = elgg_view_title($title); -$content .= list_entities_from_relationship('friend', $owner->getGUID(), TRUE, 'user', '', 0, 10, FALSE); +$options = array( + 'relationship' => 'friend', + 'relationship_guid' => $owner->getGUID(), + 'inverse_relationship' => TRUE, + 'type' => 'user', + 'full_view' => FALSE +); +$content .= elgg_list_entities_from_relationship($options); $body = elgg_view_layout('one_column_with_sidebar', array('content' => $content)); |