diff options
author | Brion Vibber <brion@pobox.com> | 2010-08-11 18:55:12 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-08-11 18:55:12 -0700 |
commit | 78eea352b4ad142e58b598c50929d5a4edb991fc (patch) | |
tree | 8f290c3301f489c3f15a8b8adf2adb705728d62c /lib | |
parent | 1551fec65a74a4d79c5eb3286015fa839d3a9a41 (diff) | |
parent | 111fc33e1aa521e8ad33fa333654d09f45a1a24e (diff) |
Merge branch '0.9.x'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/noticelist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index dbc5bfb51..529d6a3f9 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). |