X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fresource.kyberia.php;h=57f687b7f3afd2f4f6c4c0bb386be3d66298b856;hb=HEAD;hp=916309a88b13676009dafb4693ff40b490538429;hpb=ca9205d721ec662076a05441ab27f247b104318a;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/resource.kyberia.php b/wwwroot/inc/smarty/resource.kyberia.php index 916309a..57f687b 100644 --- a/wwwroot/inc/smarty/resource.kyberia.php +++ b/wwwroot/inc/smarty/resource.kyberia.php @@ -17,9 +17,11 @@ function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) { if (is_numeric($template_id)) { $tpl_source = nodes::getNodeById($template_id,empty($_SESSION['user_id']) ? "" : $_SESSION['user_id']); } - $tpl_source = "\n\n". + $template_name = $tpl_source['node_name']; + $template_signature = 'TEMPLATE /k/'.base_convert($template_id,10,36).' /id/'.$template_id.' ['.$template_name.']'; + $tpl_source = "\n\n\n\n". $tpl_source['node_content']. - "\n\n"; + "\n\n\n\n"; // return true on success, false to generate failure notification return (bool)$tpl_source;