diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-12-11 18:19:25 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-12-11 18:19:25 -0500 |
commit | 170c457c963c8b2c08eeda576021da8b3ece7c55 (patch) | |
tree | be3285ea767c6678456209609e49799d7d6b7948 /lib | |
parent | 8dcce13297dce70d993956c2e05f2b91f3c19c46 (diff) |
don't use undefined source_link; instead, just link
darcs-hash:20081211231925-5ed1f-b01d6ef925de540f4a671c0814d8715127a4c98d.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/noticelist.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index 1ffa802e9..2fb52e427 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -158,7 +158,25 @@ class NoticeListItem { function show_notice_source() { if ($this->notice->source) { common_text(_(' from ')); - $this->source_link($this->notice->source); + $source_name = _($source); + switch ($source) { + case 'web': + case 'xmpp': + case 'mail': + case 'omb': + case 'api': + common_element('span', 'noticesource', $source_name); + break; + default: + $ns = Notice_source::staticGet($source); + if ($ns) { + common_element('a', array('href' => $ns->url), + $ns->name); + } else { + common_element('span', 'noticesource', $source_name); + } + break; + } } } |