From bdd7d07d2eb4f88b7fea6c29f42006b3a1098d7d Mon Sep 17 00:00:00 2001 From: Harvie Date: Fri, 24 Dec 2010 04:49:56 +0100 Subject: [PATCH] Improved transport links... --- wwwroot/inc/transports.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.30.2