]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for source attribution on notices; it was displaying the code instead of the...
authorZach Copley <zach@status.net>
Wed, 4 Aug 2010 19:30:43 +0000 (12:30 -0700)
committerZach Copley <zach@status.net>
Wed, 4 Aug 2010 19:31:31 +0000 (12:31 -0700)
lib/noticelist.php

index 17adf3a49cdef86043c0c44b3970b9ed9143ecbc..252e1ca9002f9ad01a7d6ca89c0f11427781d0db 100644 (file)
@@ -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'));