From 1db754e93a6ac8aa0463ba116c28c547c667f82f Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 30 Mar 2004 14:36:56 +0000 Subject: [PATCH] fix problem displaying debug console when $default_resource_type is not "file:" --- NEWS | 2 ++ libs/core/core.display_debug_console.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9e3b81ad..0301112e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - fix problem displaying debug console when $default_resource_type + is not "file:" (c960657, Monte) - fix permission handling with security and config_load (messju) - removed '.' from the list of default template locations in _parse_resource_name() (messju) diff --git a/libs/core/core.display_debug_console.php b/libs/core/core.display_debug_console.php index c509ff72..ab1b5cb3 100644 --- a/libs/core/core.display_debug_console.php +++ b/libs/core/core.display_debug_console.php @@ -21,7 +21,7 @@ function smarty_core_display_debug_console($params, &$smarty) if(empty($smarty->debug_tpl)) { // set path to debug template from SMARTY_DIR - $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl'; + $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl'; if($smarty->security && is_file($smarty->debug_tpl)) { $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl)); }