aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/profile_contents/friends.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-11 21:57:33 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-11 21:57:33 +0000
commite7b9401e4e918ec7c4a442e2acb3fb48926e90a9 (patch)
tree3450eca9500facc192da0fd1373898962ae6fe8f /mod/profile/views/default/profile/profile_contents/friends.php
parent9cff8b2cbf16d11fe0861229347edf5e62dac2b5 (diff)
downloadelgg-e7b9401e4e918ec7c4a442e2acb3fb48926e90a9.tar.gz
elgg-e7b9401e4e918ec7c4a442e2acb3fb48926e90a9.tar.bz2
Some code cleanup on profile plugin.
Added wrapper view for profile content. Added ECML for profile content. Moved profile/profile_content/sidebar to profile/sidebar git-svn-id: http://code.elgg.org/elgg/trunk@6464 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default/profile/profile_contents/friends.php')
-rwxr-xr-xmod/profile/views/default/profile/profile_contents/friends.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/mod/profile/views/default/profile/profile_contents/friends.php b/mod/profile/views/default/profile/profile_contents/friends.php
index a097f3830..9195629e5 100755
--- a/mod/profile/views/default/profile/profile_contents/friends.php
+++ b/mod/profile/views/default/profile/profile_contents/friends.php
@@ -3,13 +3,10 @@
* Profile friends
**/
-$friends = list_entities_from_relationship('friend',$vars['entity']->getGUID(),false,'user','',0,10,false);
-if(!$friends)
- $friends = "<p>This user has not made any friends yet.</p>";
+$friends = list_entities_from_relationship('friend', $vars['entity']->getGUID(), FALSE, 'user', '', 0, 10, FALSE);
-?>
-<div id="profile_content">
- <?php
- echo $friends;
- ?>
-</div> \ No newline at end of file
+if(!$friends) {
+ $friends = '<p>' . elgg_echo('profile:no_friends') . '</p>';
+}
+
+echo $friends; \ No newline at end of file