GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444d686
)
Moved all transport code to transports.inc
author
Harvie
<tomas@mudrunka.cz>
Fri, 24 Dec 2010 02:44:58 +0000
(
03:44
+0100)
committer
Harvie
<tomas@mudrunka.cz>
Fri, 24 Dec 2010 02:44:58 +0000
(
03:44
+0100)
wwwroot/inc/nodes.inc
patch
|
blob
|
blame
|
history
wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php
patch
|
blob
|
blame
|
history
wwwroot/inc/transports.inc
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/inc/nodes.inc
b/wwwroot/inc/nodes.inc
index 175f9fd8299123b16b211dda694148351e9e46b2..34f76d18675d8e5a751733600e4789b428530151 100644
(file)
--- a/
wwwroot/inc/nodes.inc
+++ b/
wwwroot/inc/nodes.inc
@@
-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;
}
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 15e46c2d653d238ca3d343b93157b48c5d8dab28..802d1ceae47e1651618497a057db302e2e7c5c72 100644
(file)
--- a/
wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php
+++ b/
wwwroot/inc/smarty/node_methodz/function.get_threaded_children.php
@@
-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;
diff --git
a/wwwroot/inc/transports.inc
b/wwwroot/inc/transports.inc
index a5dbbc38342eee7fa2ca46143f292d1db5cfbfb8..998a4df4955bec0c27864b90f36e0efb90992772 100644
(file)
--- a/
wwwroot/inc/transports.inc
+++ b/
wwwroot/inc/transports.inc
@@
-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.