]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Updated tag list output in subscriptions list. Matches userprofile.
authorSarven Capadisli <csarven@status.net>
Wed, 24 Mar 2010 19:50:07 +0000 (20:50 +0100)
committerSarven Capadisli <csarven@status.net>
Thu, 25 Mar 2010 21:20:06 +0000 (22:20 +0100)
lib/subscriptionlist.php

index e1207774fd9bdbff91e93fe739c09a4426b54843..fc8f33f2ecee3524caccf5456421379ebf445fb6 100644 (file)
@@ -113,12 +113,13 @@ class SubscriptionListItem extends ProfileListItem
             $this->out->elementStart('ul', 'tags xoxo');
             foreach ($tags as $tag) {
                 $this->out->elementStart('li');
-                $this->out->element('span', 'mark_hash', '#');
-                $this->out->element('a', array('rel' => 'tag',
-                                               'href' => common_local_url($this->action->trimmed('action'),
-                                                                          array('nickname' => $this->owner->nickname,
-                                                                                'tag' => $tag))),
-                                    $tag);
+                // Avoid space by using raw output.
+                $pt = '<span class="mark_hash">#</span><a rel="tag" href="' .
+                  common_local_url($this->action->trimmed('action'),
+                                   array('nickname' => $this->owner->nickname,
+                                   'tag' => $tag)) .
+                  '">' . $tag . '</a>';
+                $this->out->raw($pt);
                 $this->out->elementEnd('li');
             }
             $this->out->elementEnd('ul');