forked from GNUsocial/gnu-social
		
	don't use undefined source_link; instead, just link
darcs-hash:20081211231925-5ed1f-b01d6ef925de540f4a671c0814d8715127a4c98d.gz
This commit is contained in:
		@@ -158,7 +158,25 @@ class NoticeListItem {
 | 
				
			|||||||
    function show_notice_source() {
 | 
					    function show_notice_source() {
 | 
				
			||||||
		if ($this->notice->source) {
 | 
							if ($this->notice->source) {
 | 
				
			||||||
			common_text(_(' from '));
 | 
								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;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user