aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/collections.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-31 09:45:39 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-31 09:45:39 +0000
commit7aa94f2b998df85cfeaa6325fedc49cb47da110f (patch)
treefd45243b397323634353010d47e9ce179dad8377 /views/default/friends/collections.php
parent79601adfad8d40fdb202efbc3071683506ffcae1 (diff)
downloadelgg-7aa94f2b998df85cfeaa6325fedc49cb47da110f.tar.gz
elgg-7aa94f2b998df85cfeaa6325fedc49cb47da110f.tar.bz2
Hurrah! Made the friendspickers work
git-svn-id: https://code.elgg.org/elgg/trunk@1623 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/friends/collections.php')
-rw-r--r--views/default/friends/collections.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/friends/collections.php b/views/default/friends/collections.php
index a98e80c3a..c67f2f0dc 100644
--- a/views/default/friends/collections.php
+++ b/views/default/friends/collections.php
@@ -14,6 +14,8 @@
* @uses $vars['collections'] The array of friends collections
*/
+ if (!isset($friendspicker)) $friendspicker = 0;
+
if (is_array($vars['collections']) && sizeof($vars['collections'])) {
echo "<div class=\"expandall\"><p>expand all</p></div>";
@@ -21,7 +23,8 @@
foreach($vars['collections'] as $collection) {
- echo elgg_view('friends/collection',array('collection' => $collection));
+ $friendspicker++;
+ echo elgg_view('friends/collection',array('collection' => $collection, 'friendspicker' => $friendspicker));
}