Now assigning JSON interpretation of node to Smarty
authorHarvie <tomas@mudrunka.cz>
Mon, 20 Dec 2010 19:04:57 +0000 (20:04 +0100)
committerHarvie <tomas@mudrunka.cz>
Mon, 20 Dec 2010 19:04:57 +0000 (20:04 +0100)
wwwroot/nodes.php

index 2425b50a8d3983ff23f596956297a8dd395595d0..2d7dc8cf360c0986a31b172bd98c467087721d57 100644 (file)
@@ -488,7 +488,10 @@ if ($node['node_system_access']=='crypto') {
 $smarty->assign('error',$error);
 $smarty->assign('permissions',$permissions);
 $smarty->assign('current_vector',$node['node_vector']);
-if ($permissions['r']) $smarty->assign('node',$node);
+if ($permissions['r']) {
+       $smarty->assign('node',$node);
+       $smarty->assign('node_json',json_encode($node));
+}
 else {
 
        $smarty->assign('node',$node);
This page took 0.164414 seconds and 4 git commands to generate.