From 170c457c963c8b2c08eeda576021da8b3ece7c55 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 11 Dec 2008 18:19:25 -0500 Subject: [PATCH] don't use undefined source_link; instead, just link darcs-hash:20081211231925-5ed1f-b01d6ef925de540f4a671c0814d8715127a4c98d.gz --- lib/noticelist.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/noticelist.php b/lib/noticelist.php index 1ffa802e9b..2fb52e4270 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; + } } }