summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-08-04 12:30:43 -0700
committerZach Copley <zach@status.net>2010-08-04 12:31:31 -0700
commitfd530a892fd969f8938d8f7300d348846e684d2f (patch)
treeb836d081caf1d9a79cd682a2d1163690e2cce1f2
parent0faa988e91056564b2ae19f045a81b322cce4e0c (diff)
Fix for source attribution on notices; it was displaying the code instead of the source name sometimes.
-rw-r--r--lib/noticelist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 17adf3a49..252e1ca90 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -499,7 +499,7 @@ class NoticeListItem extends Widget
$ns = $this->notice->getSource();
if ($ns) {
- $source_name = _($ns->code);
+ $source_name = (empty($ns->name)) ? _($ns->code) : _($ns->name);
$this->out->text(' ');
$this->out->elementStart('span', 'source');
$this->out->text(_('from'));