X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_threaded_children.php;h=802d1ceae47e1651618497a057db302e2e7c5c72;hb=79a1334bcab6596cf6695b1949dbb04c10c1cdf7;hp=c39e537059097611f719cb2cb2b08ec2af75a85a;hpb=1cde06e492d1a9a29e6d6de512c10560895992fd;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php b/wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php index c39e537..802d1ce 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php @@ -61,37 +61,20 @@ else $security = ""; $result=$db->query($q); - while ($result->next()) { -$child = $result->getRecord(); -if($child['external_link']=='transport') { - $child['node_status']='linked'; - $transport = preg_split('/[:@]/',trim($child['node_content'])); - require_once(INCLUDE_DIR.'transports.inc'); - transport_load($transport[0]); - global $transports; - $child['node_name']=$transport[0].':'.$transport[1].'@defaulthost'; - $child['node_content']=$transport[0].':'.$transport[1].'@defaulthost:
'.$transports[$transport[0]]['get_node_content']($transport[1]); -} + while ($result->next()) { + $child = $result->getRecord(); + transport_process_node($child); + if($child['synapse_creator']!='') $child['node_status']='linked'; -if($child['synapse_creator']!='') { - $child['node_status']='linked'; -/* if($child['transport']!='') { - require_once(INCLUDE_DIR.'transports.inc'); - transport_load($child['transport']); - global $transports; - $child['node_content']=$child['transport'].':'.$child['node_id'].'@default:\n
'.$transports[$child['transport']]['get_node_content']($child['node_id']); - $child['node_name']=$child['transport'].':'.$child['node_id']; - } */ -} + $get_children_array[]=$child; + } -$get_children_array[]=$child; - } - global $time_1, $time_2; - $time_2=$result->getString('node_created'); - $time_1=$get_children_array[0]['node_created']; + global $time_1, $time_2; + $time_2=$result->getString('node_created'); + $time_1=$get_children_array[0]['node_created']; - $smarty->assign('get_threaded_children',$get_children_array); + $smarty->assign('get_threaded_children',$get_children_array); - } +} ?>