From 9177ccb4069816bb5c6c445b8781efb48c34d7b6 Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 30 Mar 2004 15:51:27 +0000 Subject: [PATCH] fix problem with debug_tpl path and security --- libs/core/core.display_debug_console.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/core/core.display_debug_console.php b/libs/core/core.display_debug_console.php index ab1b5cb3..a5d72913 100644 --- a/libs/core/core.display_debug_console.php +++ b/libs/core/core.display_debug_console.php @@ -21,10 +21,11 @@ function smarty_core_display_debug_console($params, &$smarty) if(empty($smarty->debug_tpl)) { // set path to debug template from SMARTY_DIR - $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl'; + $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl'; if($smarty->security && is_file($smarty->debug_tpl)) { $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl)); } + $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl'; } $_ldelim_orig = $smarty->left_delimiter;