mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fix problem displaying debug console when $default_resource_type is not "file:"
This commit is contained in:
2
NEWS
2
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)
|
- 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)
|
||||||
|
@@ -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));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user