From a253dd2192a001938421232d07ac4c430f514ac0 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 4 Aug 2005 20:21:39 +0000 Subject: [PATCH] allow debug.tpl to work from arbitrary dir --- NEWS | 1 + libs/internals/core.display_debug_console.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8fb89ec7..d8c9abb0 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ + - allow debug.tpl to work from arbitrary dir (monte) - fix proper escaping for literal strings in Smarty_Compiler::_parse_var_props() (boots, messju) - remove ambiguity for numeric values passed to smarty_make_timestamp() diff --git a/libs/internals/core.display_debug_console.php b/libs/internals/core.display_debug_console.php index a5d72913..1a80f390 100644 --- a/libs/internals/core.display_debug_console.php +++ b/libs/internals/core.display_debug_console.php @@ -23,7 +23,7 @@ function smarty_core_display_debug_console($params, &$smarty) // set path to debug template from SMARTY_DIR $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl'; if($smarty->security && is_file($smarty->debug_tpl)) { - $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl)); + $smarty->secure_dir[] = realpath($smarty->debug_tpl); } $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl'; }