aboutsummaryrefslogtreecommitdiff
path: root/friends/of.php
diff options
context:
space:
mode:
Diffstat (limited to 'friends/of.php')
-rw-r--r--friends/of.php40
1 files changed, 18 insertions, 22 deletions
diff --git a/friends/of.php b/friends/of.php
index fb7b6d659..c2e8a785e 100644
--- a/friends/of.php
+++ b/friends/of.php
@@ -1,27 +1,23 @@
<?php
+/**
+ * Elgg friends of page
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg friends of page
- *
- * @package Elgg
- * @subpackage Core
+if (!$owner = page_owner_entity()) {
+ gatekeeper();
+ set_page_owner($_SESSION['user']->getGUID());
+ $owner = $_SESSION['user'];
+}
+$friends_of = sprintf(elgg_echo("friends:of:owned"),$owner->name);
- * @author Curverider Ltd
+$area1 = elgg_view_title($friends_of);
+$area2 = list_entities_from_relationship('friend',$owner->getGUID(),true,'user','',0,10,false);
+$body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2);
- * @link http://elgg.org/
- */
+page_draw($friends_of, $body);
- if (!$owner = page_owner_entity()) {
- gatekeeper();
- set_page_owner($_SESSION['user']->getGUID());
- $owner = $_SESSION['user'];
- }
- $friends_of = sprintf(elgg_echo("friends:of:owned"),$owner->name);
-
- $area1 = elgg_view_title($friends_of);
- $area2 = list_entities_from_relationship('friend',$owner->getGUID(),true,'user','',0,10,false);
- $body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2);
-
- page_draw($friends_of, $body);
-
-?>