Moved all transport code to transports.inc
authorHarvie <tomas@mudrunka.cz>
Fri, 24 Dec 2010 02:44:58 +0000 (03:44 +0100)
committerHarvie <tomas@mudrunka.cz>
Fri, 24 Dec 2010 02:44:58 +0000 (03:44 +0100)
wwwroot/inc/nodes.inc
wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php
wwwroot/inc/transports.inc

index 175f9fd8299123b16b211dda694148351e9e46b2..34f76d18675d8e5a751733600e4789b428530151 100644 (file)
@@ -204,6 +204,7 @@ where $table_name.node_id='$node_handle'";
                           $node['ancestors'][]=array("name"=>"","link"=>ltrim($ancestor,"0"));
                         }
                 }
+               transport_process_node($node);
                 return $node;
 
         }
index 15e46c2d653d238ca3d343b93157b48c5d8dab28..802d1ceae47e1651618497a057db302e2e7c5c72 100644 (file)
@@ -63,7 +63,7 @@ else $security = "";
 
        while ($result->next()) {
                $child = $result->getRecord();
-               if($child['external_link']=='transport') $child = array_merge($child, transport_translate($child['node_content']));
+               transport_process_node($child);
                if($child['synapse_creator']!='') $child['node_status']='linked';
 
                $get_children_array[]=$child;
index a5dbbc38342eee7fa2ca46143f292d1db5cfbfb8..998a4df4955bec0c27864b90f36e0efb90992772 100644 (file)
@@ -20,3 +20,7 @@ function transport_translate($transport_handle) {
 
        return $node;
 }
+
+function transport_process_node(&$node) {
+  if($node['external_link']=='transport') $node = array_merge($node, transport_translate($node['node_content']));
+}
This page took 0.23966 seconds and 4 git commands to generate.