Fix for source attribution on notices; it was displaying the code instead of the source name sometimes.

This commit is contained in:
Zach Copley 2010-08-04 12:30:43 -07:00
parent 0faa988e91
commit fd530a892f

View File

@ -499,7 +499,7 @@ class NoticeListItem extends Widget
$ns = $this->notice->getSource(); $ns = $this->notice->getSource();
if ($ns) { if ($ns) {
$source_name = _($ns->code); $source_name = (empty($ns->name)) ? _($ns->code) : _($ns->name);
$this->out->text(' '); $this->out->text(' ');
$this->out->elementStart('span', 'source'); $this->out->elementStart('span', 'source');
$this->out->text(_('from')); $this->out->text(_('from'));