- if (!$lists->private ||
- ($lists->private && !empty($cur) && $cur->id == $profile->id)) {
- if (!empty($lists->mainpage)) {
- $url = $lists->mainpage;
- } else {
- $url = common_local_url('showprofiletag',
- array('tagger' => $this->profile->nickname,
- 'tag' => $lists->tag));
- }
- if (!$first) {
- $this->text(', ');
- } else {
- $first = false;
- }
-
- $this->element('a', array('href' => $url),
- $lists->tag);
+ if (!empty($lists->mainpage)) {
+ $url = $lists->mainpage;
+ } else {
+ $url = common_local_url('showprofiletag',
+ array('tagger' => $this->profile->nickname,
+ 'tag' => $lists->tag));