diff options
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_internal_compile_debug.php')
-rw-r--r-- | library/Smarty/libs/sysplugins/smarty_internal_compile_debug.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_internal_compile_debug.php b/library/Smarty/libs/sysplugins/smarty_internal_compile_debug.php index b184a746b..d73c81a10 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_compile_debug.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_compile_debug.php @@ -34,8 +34,8 @@ class Smarty_Internal_Compile_Debug extends Smarty_Internal_CompileBase $compiler->tag_nocache = true; // display debug template - $_output = "<?php \$_smarty_tpl->smarty->loadPlugin('Smarty_Internal_Debug'); Smarty_Internal_Debug::display_debug(\$_smarty_tpl); ?>"; - + $_output = "<?php \$_smarty_debug = new Smarty_Internal_Debug;\n \$_smarty_debug->display_debug(\$_smarty_tpl);\n"; + $_output .= "unset(\$_smarty_debug);\n?>"; return $_output; } } |