22 if(empty($smarty->debug_tpl)) {
25 if($smarty->security && is_file($smarty->debug_tpl)) {
26 $smarty->secure_dir[] = realpath($smarty->debug_tpl);
28 $smarty->debug_tpl =
'file:' .
SMARTY_DIR .
'debug.tpl';
31 $_ldelim_orig = $smarty->left_delimiter;
32 $_rdelim_orig = $smarty->right_delimiter;
34 $smarty->left_delimiter =
'{';
35 $smarty->right_delimiter =
'}';
37 $_compile_id_orig = $smarty->_compile_id;
38 $smarty->_compile_id = null;
40 $_compile_path = $smarty->_get_compile_path($smarty->debug_tpl);
41 if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path))
44 $smarty->_include($_compile_path);
45 $_results = ob_get_contents();
51 $smarty->_compile_id = $_compile_id_orig;
53 $smarty->left_delimiter = $_ldelim_orig;
54 $smarty->right_delimiter = $_rdelim_orig;