From: Evan Prodromou Date: Thu, 14 Apr 2011 21:03:10 +0000 (-0400) Subject: show lists as a comma-separated list in sidebar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8a58c924b0568fcb457ce54db79b463e34a202e;p=quix0rs-gnu-social.git show lists as a comma-separated list in sidebar --- diff --git a/lib/profileaction.php b/lib/profileaction.php index 4f2a403e28..52c471909b 100644 --- a/lib/profileaction.php +++ b/lib/profileaction.php @@ -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'); } }