]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show lists as a comma-separated list in sidebar
authorEvan Prodromou <evan@status.net>
Thu, 14 Apr 2011 21:03:10 +0000 (17:03 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 14 Apr 2011 21:03:10 +0000 (17:03 -0400)
lib/profileaction.php

index 4f2a403e28c54750ec72784f7baf59fa327365ba..52c471909b5b570ef54e66ae6fbacaa6d15614bb 100644 (file)
@@ -304,6 +304,8 @@ class ProfileAction extends OwnerDesignAction
 
                 $cur = common_current_user();
 
+                $first = true;
+
                 while ($lists->fetch()) {
                     if (!$lists->private ||
                         ($lists->private && !empty($cur) && $cur->id == $profile->id)) {
@@ -314,10 +316,14 @@ class ProfileAction extends OwnerDesignAction
                                                     array('tagger' => $this->profile->nickname,
                                                           'tag'    => $lists->tag));
                         }
-                        $this->elementStart('li');
+                        if (!$first) {
+                            $this->text(', ');
+                        } else {
+                            $first = false;
+                        }
+
                         $this->element('a', array('href' => $url),
                                        $lists->tag);
-                        $this->elementEnd('li');
                     }
                 }