From: Harvie Date: Fri, 24 Dec 2010 03:49:56 +0000 (+0100) Subject: Improved transport links... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=bdd7d07d2eb4f88b7fea6c29f42006b3a1098d7d;p=mirrors%2FKyberia-bloodline.git Improved transport links... --- diff --git a/wwwroot/inc/transports.inc b/wwwroot/inc/transports.inc index 998a4df..13e1832 100644 --- a/wwwroot/inc/transports.inc +++ b/wwwroot/inc/transports.inc @@ -4,6 +4,10 @@ function transport_load($transport) { require_once(TRANSPORT_DIR.$transport.'.inc'); } +function transport_link($url) { + return "$url"; +} + function transport_translate($transport_handle) { $transport = preg_split('/[:@]/',trim($transport_handle)); transport_load($transport[0]); @@ -16,7 +20,7 @@ function transport_translate($transport_handle) { $node['node_status']='linked'; $node['node_name']="$transport:$id@$domain"; $node['url']=$transports[$transport]['get_node_url']($id); - $node['node_content']=$node['url'].'
'.$transports[$transport]['get_node_content']($id); + $node['node_content']='Source: '.transport_link($node['url']).';
'.$transports[$transport]['get_node_content']($id); return $node; }