summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-11 16:40:16 -0500
committerSarven Capadisli <csarven@status.net>2010-03-11 16:40:16 -0500
commitded26ae8f55496e67e19515e1d73cfa41f6b2c75 (patch)
tree963a801a0876e7575fc534cbf870650d767c259b /lib
parent4c320872d92e4323c2566013034dbea45b309065 (diff)
Fixes the indenting bug for geo anchor. Also mention in trac ticket 2235
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 88a925241..811b7e4f1 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');
}