Fixes the indenting bug for geo anchor. Also mention in trac ticket 2235

This commit is contained in:
Sarven Capadisli 2010-03-11 16:40:16 -05:00
parent 4c320872d9
commit ded26ae8f5

View File

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