diff options
Diffstat (limited to 'views/default/friends/collection.php')
-rw-r--r-- | views/default/friends/collection.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php index 2d6fedac4..8d8afd7d1 100644 --- a/views/default/friends/collection.php +++ b/views/default/friends/collection.php @@ -38,15 +38,14 @@ if($friends = $vars['collection']->entities){
$members = $vars['collection']->members;
$implodedmemberslist = implode(',',$members);
- $content = elgg_view('friends/collectiontabs', array('members' => $members, 'friends' => $friends, 'collection' => $vars['collection']));
- echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => ''));
- global $friendspicker;
+ $content = elgg_view('friends/collectiontabs', array('members' => $members, 'friends' => $friends, 'collection' => $vars['collection'], 'friendspicker' => $vars['friendspicker']));
+ echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members, 'content' => $content, 'replacement' => '', 'friendspicker' => $vars['friendspicker']));
?>
<script type="text/javascript">
$(document).ready(function () {
- $('#friends_picker_placeholder<?php echo $friendspicker; ?>').load('<?php echo $vars['url']; ?>friends/pickercallback.php?username=<?php echo $_SESSION['user']->username; ?>&type=list&members=<?php echo $implodedmemberslist; ?>');
+ $('#friends_picker_placeholder<?php echo $vars['friendspicker']; ?>').load('<?php echo $vars['url']; ?>friends/pickercallback.php?username=<?php echo $_SESSION['user']->username; ?>&type=list&members=<?php echo $implodedmemberslist; ?>');
});
</script>
|