X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fnoticelist.php;h=529d6a3f90752c4a82457c4dc49f1563b23127c2;hb=80044ad735643c289c6f682f60e67bb7662bde0f;hp=252e1ca9002f9ad01a7d6ca89c0f11427781d0db;hpb=fd530a892fd969f8938d8f7300d348846e684d2f;p=quix0rs-gnu-social.git diff --git a/lib/noticelist.php b/lib/noticelist.php index 252e1ca900..529d6a3f90 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -499,9 +499,10 @@ class NoticeListItem extends Widget $ns = $this->notice->getSource(); if ($ns) { - $source_name = (empty($ns->name)) ? _($ns->code) : _($ns->name); + $source_name = (empty($ns->name)) ? ($ns->code ? _($ns->code) : _('web')) : _($ns->name); $this->out->text(' '); $this->out->elementStart('span', 'source'); + // FIXME: probably i18n issue. If "from" is followed by text, that should be a parameter to "from" (from %s). $this->out->text(_('from')); $this->out->text(' ');