From: niekt0 Date: Sat, 23 Oct 2010 20:01:56 +0000 (+0200) Subject: template dir fixup X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=39244cfcf0fdf2805a10499567555087b167c9bf;p=mirrors%2FKyberia-bloodline.git template dir fixup --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 85fef19..3757485 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -6,6 +6,7 @@ if (!empty($_POST['FORCE_OB']) && $_POST['FORCE_OB'] == 'true') ob_start(); //echo "je to uz uplne v pici. vsetky data su stratene, prajem pekny den :)"; //exit; error_reporting(1); +$_SESSION['debugging']=1; //exit; //starting timer for benchmarking purposes @@ -62,11 +63,11 @@ require(SMARTY_DIR.'Smarty.class.php'); $smarty = new Smarty; //$smarty->php_handling = SMARTY_PHP_REMOVE; //XXX -$smarty->template_dir = TEMPLATE_DIR.TEMPLATE_SET; +$smarty->template_dir = TEMPLATE_DIR; //echo TEMPLATE_DIR.TEMPLATE_SET; //echo $smarty->template_dir; -$smarty->compile_dir = SYSTEM_ROOT."data/templates_c/".TEMPLATE_SET; -$smarty->config_dir = SMARTY_DIR.'configs/'; +$smarty->compile_dir = SYSTEM_DATA."templates_c/"; +$smarty->config_dir = SMARTY_DIR.'configs/'; #XXX neexistuje $smarty->cache_dir = SMARTY_DIR.'cache/'; $smarty->plugins_dir = SMARTY_PLUGIN_DIR ; if ($_SESSION['debugging']) $smarty->debugging=true;