diff options
author | Evan Prodromou <evan@status.net> | 2010-08-13 14:33:41 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-08-13 14:33:41 -0700 |
commit | 718317542940a8976f2c6f2a9ea09a04f2f00ca6 (patch) | |
tree | 2bae1e1b0ce628101453b83c7e4ddcce59b43c62 /lib/noticelist.php | |
parent | 9f0715a9935966f3ec483bccc476d5baf3324b3c (diff) | |
parent | 029aa0c61c9942c0688fd3dc9aa2893311543db1 (diff) |
Merge branch 'master' into 1.0.x
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r-- | lib/noticelist.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index 17adf3a49..529d6a3f9 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 = _($ns->code); + $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(' '); |