]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #1411 using new elgg_list* functions in friends page handlers
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 17 Nov 2010 12:23:22 +0000 (12:23 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 17 Nov 2010 12:23:22 +0000 (12:23 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7331 36083f99-b078-4883-b0ff-0f9b5a30f544

pages/friends/index.php
pages/friends/of.php

index 916f248d9717803500b1671e87b75299f3885afa..13799e973cf1e7a8ababe304dab0a099d297fb05 100644 (file)
@@ -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));
 
index 501b0ad2e3f9f3a3968dc85da4527b9717cd1b07..66cda587dd4d97522b8821870bf88e6a00326707 100644 (file)
@@ -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));