fix problem displaying debug console when $default_resource_type is not "file:"

This commit is contained in:
mohrt
2004-03-30 14:36:56 +00:00
parent 6db125ff94
commit 1db754e93a
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -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) - fix permission handling with security and config_load (messju)
- removed '.' from the list of default template locations in - removed '.' from the list of default template locations in
_parse_resource_name() (messju) _parse_resource_name() (messju)

View File

@@ -21,7 +21,7 @@ function smarty_core_display_debug_console($params, &$smarty)
if(empty($smarty->debug_tpl)) { if(empty($smarty->debug_tpl)) {
// set path to debug template from SMARTY_DIR // 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)) { if($smarty->security && is_file($smarty->debug_tpl)) {
$smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl)); $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl));
} }