From: Sarven Capadisli Date: Thu, 11 Mar 2010 21:40:16 +0000 (-0500) Subject: Fixes the indenting bug for geo anchor. Also mention in trac ticket 2235 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ded26ae8f55496e67e19515e1d73cfa41f6b2c75;p=quix0rs-gnu-social.git Fixes the indenting bug for geo anchor. Also mention in trac ticket 2235 --- diff --git a/lib/noticelist.php b/lib/noticelist.php index 88a9252414..811b7e4f10 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -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'); }