From: Harvie Date: Mon, 29 Nov 2010 02:09:44 +0000 (+0100) Subject: Added node.node_kid (base36 id) for use in Smarty templates X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=9371f8b6a238eef18ede5cd21fa68b5591d037b6;p=mirrors%2FKyberia-bloodline.git Added node.node_kid (base36 id) for use in Smarty templates --- diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index 2f63e55..47bba1b 100644 --- a/wwwroot/inc/nodes.inc +++ b/wwwroot/inc/nodes.inc @@ -195,6 +195,7 @@ where $table_name.node_id='$node_handle'"; } else { $node=$result->getRecord(); + $node['node_kid']=base_convert($node['node_id'],10,36); $node['node_vector']=trim($node['node_vector'],"z"); $ancestors=str_split($node['node_vector'],VECTOR_CHARS); foreach ($ancestors as $ancestor) {