From: Zach Copley Date: Wed, 4 Aug 2010 19:30:43 +0000 (-0700) Subject: Fix for source attribution on notices; it was displaying the code instead of the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd530a892fd969f8938d8f7300d348846e684d2f;p=quix0rs-gnu-social.git Fix for source attribution on notices; it was displaying the code instead of the source name sometimes. --- diff --git a/lib/noticelist.php b/lib/noticelist.php index 17adf3a49c..252e1ca900 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'));