From: Harvie Date: Fri, 22 Jun 2012 01:06:43 +0000 (+0200) Subject: Jeste lepsi vychytafka trasovani templat :-) X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=8b1d21e6dc9d2eae1f08eb6f4ca52bde9bc0efab;p=mirrors%2FKyberia-bloodline.git Jeste lepsi vychytafka trasovani templat :-) --- diff --git a/wwwroot/inc/smarty/resource.kyberia.php b/wwwroot/inc/smarty/resource.kyberia.php index 0c1d51d..bf22a85 100644 --- a/wwwroot/inc/smarty/resource.kyberia.php +++ b/wwwroot/inc/smarty/resource.kyberia.php @@ -17,9 +17,10 @@ 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\n\n". + $template_name = $tpl_source['node_name']; + $tpl_source = "\n\n\n\n". $tpl_source['node_content']. - "\n\n\n\n"; + "\n\n\n\n"; // return true on success, false to generate failure notification return (bool)$tpl_source;