aboutsummaryrefslogtreecommitdiff
path: root/friends/collections.php
diff options
context:
space:
mode:
Diffstat (limited to 'friends/collections.php')
-rw-r--r--friends/collections.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/friends/collections.php b/friends/collections.php
index 5d3149de5..25ab98c4c 100644
--- a/friends/collections.php
+++ b/friends/collections.php
@@ -8,16 +8,15 @@
* @link http://elgg.org/
*/
-// Start engine
-require_once(dirname(dirname((__FILE__))) . "/engine/start.php");
-
// You need to be logged in for this one
gatekeeper();
-$area2 = elgg_view_access_collections($_SESSION['user']->getGUID());
+$title = elgg_echo('friends:collections');
+
+$content = elgg_view_title($title);
+
+$content .= elgg_view_access_collections(get_loggedin_userid());
-// Format page
-$body = elgg_view_layout('one_column_with_sidebar', elgg_view_title(elgg_echo('friends:collections')) . $area2);
+$body = elgg_view_layout('one_column_with_sidebar', $content);
-// Draw it
-page_draw(elgg_echo('friends:collections'),$body); \ No newline at end of file
+page_draw($title, $body);