]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixes the indenting bug for geo anchor. Also mention in trac ticket 2235
authorSarven Capadisli <csarven@status.net>
Thu, 11 Mar 2010 21:40:16 +0000 (16:40 -0500)
committerSarven Capadisli <csarven@status.net>
Thu, 11 Mar 2010 21:40:16 +0000 (16:40 -0500)
lib/noticelist.php

index 88a9252414325ba8d38cb2f0f327770ff186133a..811b7e4f1070e283151bb678f0c77c4de34d6e9b 100644 (file)
@@ -442,11 +442,13 @@ class NoticeListItem extends Widget
                                               'title' => $latlon),
                                 $name);
         } else {
-            $this->out->elementStart('a', array('href' => $url));
-            $this->out->element('abbr', array('class' => 'geo',
-                                              'title' => $latlon),
-                                $name);
-            $this->out->elementEnd('a');
+            $xstr = new XMLStringer(false);
+            $xstr->elementStart('a', array('href' => $url));
+            $xstr->element('abbr', array('class' => 'geo',
+                                         'title' => $latlon),
+                           $name);
+            $xstr->elementEnd('a');
+            $this->out->raw($xstr->getString());
         }
         $this->out->elementEnd('span');
     }