Even more transport cleanup
authorHarvie <tomas@mudrunka.cz>
Fri, 24 Dec 2010 02:36:58 +0000 (03:36 +0100)
committerHarvie <tomas@mudrunka.cz>
Fri, 24 Dec 2010 02:36:58 +0000 (03:36 +0100)
wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php
wwwroot/inc/transports.inc

index 7a7cc3313b656e8487d84cc53c6193f75f6fda68..15e46c2d653d238ca3d343b93157b48c5d8dab28 100644 (file)
@@ -61,38 +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:<br />'.$transports[$transport[0]]['get_node_content']($transport[1]);*/
-       $child = array_merge($child, transport_translate($child['node_content']));
-}
+       while ($result->next()) {
+               $child = $result->getRecord();
+               if($child['external_link']=='transport') $child = array_merge($child, transport_translate($child['node_content']));
+               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<br />'.$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);
 
-       }
+}
 ?>
 
index 318096d2a75663d2aaf916043e77687801f3236a..a5dbbc38342eee7fa2ca46143f292d1db5cfbfb8 100644 (file)
@@ -13,6 +13,7 @@ function transport_translate($transport_handle) {
        $domain='defaulthost'; if(isset($transport[2])) $domain=$transport[2];
        $transport=$transport[0];
 
+       $node['node_status']='linked';
        $node['node_name']="$transport:$id@$domain";
        $node['url']=$transports[$transport]['get_node_url']($id);
        $node['node_content']=$node['url'].'<br />'.$transports[$transport]['get_node_content']($id);
This page took 0.374526 seconds and 4 git commands to generate.