From 60c1387a16ea4944674b0c9da2273158d1fbf0b4 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 23:15:43 +0000 Subject: Merged r6757:6810 from 1.7 branch into trunk git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/collection.php | 8 ++++---- views/default/friends/collectiontabs.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'views/default/friends') diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php index deadb2f6a..ddd0a0ed0 100644 --- a/views/default/friends/collection.php +++ b/views/default/friends/collection.php @@ -24,7 +24,7 @@ if (is_array($vars['collection']->members)) { echo "
  • "; //as collections are private, check that the logged in user is the owner -if($coll->owner_guid == $_SESSION['user']->getGUID()) { +if ($coll->owner_guid == get_loggedin_userid()) { echo "
    "; echo elgg_view('output/confirmlink', array( 'href' => $vars['url'] . 'action/friends/deletecollection?collection=' . $coll->id, @@ -36,8 +36,8 @@ echo $coll->name; echo " ({$count})

    "; // individual collection panels -if($friends = $vars['collection']->entities) { - $content = elgg_view('friends/collectiontabs', array('owner' => $_SESSION['user'], 'collection' => $vars['collection'], 'friendspicker' => $vars['friendspicker'])); +if ($friends = $vars['collection']->entities) { + $content = elgg_view('friends/collectiontabs', array('owner' => get_loggedin_user(), 'collection' => $vars['collection'], 'friendspicker' => $vars['friendspicker'])); echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => '', 'friendspicker' => $vars['friendspicker'])); ?> @@ -45,7 +45,7 @@ if($friends = $vars['collection']->entities) { diff --git a/views/default/friends/collectiontabs.php b/views/default/friends/collectiontabs.php index 453cbb112..9a6577671 100644 --- a/views/default/friends/collectiontabs.php +++ b/views/default/friends/collectiontabs.php @@ -32,7 +32,7 @@ $(document).ready(function () { $('a.collectionmembers').click(function () { // load collection members pane - $('#friends_picker_placeholder').load('friends/pickercallback.php?username=username; ?>&type=list&collection=&friendspicker='); + $('#friends_picker_placeholder').load('friends/pickercallback.php?username=username; ?>&type=list&collection=&friendspicker='); // remove selected state from previous tab $(this).parent().parent().find("li.selected").removeClass("selected"); @@ -44,7 +44,7 @@ $(document).ready(function () { $('a.editmembers').click(function () { // load friends picker pane - $('#friends_picker_placeholder').load('friends/pickercallback.php?username=username; ?>&type=picker&collection=&friendspicker='); + $('#friends_picker_placeholder').load('friends/pickercallback.php?username=username; ?>&type=picker&collection=&friendspicker='); // remove selected state from previous tab $(this).parent().parent().find("li.selected").removeClass("selected"); -- cgit v1.2.3