mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
allow debug.tpl to work from arbitrary dir
This commit is contained in:
1
NEWS
1
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()
|
||||
|
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user