X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fresource.kyberia.php;h=916309a88b13676009dafb4693ff40b490538429;hb=ca9205d721ec662076a05441ab27f247b104318a;hp=c25e0f6f7844e2a16691f415d152a9db38e602ba;hpb=2c467942ca4418350a043ccf3762a30b42a91dd1;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/resource.kyberia.php b/wwwroot/inc/smarty/resource.kyberia.php index c25e0f6..916309a 100644 --- a/wwwroot/inc/smarty/resource.kyberia.php +++ b/wwwroot/inc/smarty/resource.kyberia.php @@ -17,7 +17,9 @@ 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 = $tpl_source['node_content']; + $tpl_source = "\n\n". + $tpl_source['node_content']. + "\n\n"; // return true on success, false to generate failure notification return (bool)$tpl_source; @@ -29,7 +31,7 @@ function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) // do database call here to populate $tpl_timestamp // with unix epoch time value of last template modification. // This is used to determine if recompile is necessary. - $recompile = 100; //recompile every N seconds + $recompile = 10; //recompile every N seconds $tpl_timestamp = floor(time()/$recompile)*$recompile; // this example will recompile even unchanged templates! XXX!!! FIXME!!! TODO!!! // return true on success, false to generate failure notification