From: Brion Vibber Date: Thu, 12 Aug 2010 01:53:34 +0000 (-0700) Subject: Output "web" instead of gettext translation file metadata when notice.source is empty X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=111fc33e1aa521e8ad33fa333654d09f45a1a24e;p=quix0rs-gnu-social.git Output "web" instead of gettext translation file metadata when notice.source is empty --- diff --git a/lib/noticelist.php b/lib/noticelist.php index dbc5bfb519..529d6a3f90 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 = (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).