From: Harvie Date: Mon, 20 Dec 2010 19:04:57 +0000 (+0100) Subject: Now assigning JSON interpretation of node to Smarty X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=d4ac6b36f758c177d0bb2ccd7f7804873b6d2732;p=mirrors%2FKyberia-bloodline.git Now assigning JSON interpretation of node to Smarty --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 2425b50..2d7dc8c 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -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);