X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fresource.kyberia.php;h=1e4a7c1cc79ed32aaa2d0a06ab85115adb84e73b;hb=de8e1dde86dc65e8afcb8f569bbbebd8d7259468;hp=db739208a7cef9a033df9f9ebab6393682469437;hpb=2b81c64669616121bea6ef85f965a59d383310fa;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/resource.kyberia.php b/wwwroot/inc/smarty/resource.kyberia.php index db73920..1e4a7c1 100644 --- a/wwwroot/inc/smarty/resource.kyberia.php +++ b/wwwroot/inc/smarty/resource.kyberia.php @@ -24,7 +24,7 @@ function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) { */ // populating $tpl_source with actual template contents //$tpl_source = stripslashes($set->getString('node_content')); - $tpl_source = nodes::getNodeById($add_template_id,$user_id); + $tpl_source = nodes::getNodeById($add_template_id,$_SESSION['user_id']); $tpl_source = $tpl_source['node_content']; // return true on success, false to generate failure notification return true; @@ -37,7 +37,8 @@ function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) // with unix epoch time value of last template modification. // This is used to determine if recompile is necessary. $recompile = 100; //recompile every N seconds - $tpl_timestamp = floor(time()/$recompile)*$recompile; // this example will recompile even unchanged templates! XXX!!! FIXME!!! TODO!!! + $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 return true; }