From d4022c9d33ca70c6b2c74a60bb94575f6c4671d6 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 26 Oct 2001 19:41:05 +0000 Subject: [PATCH] fix minor typo in debug code --- Smarty.addons.php | 2 -- Smarty.class.php | 2 +- demo/index.php | 2 ++ index.php | 2 ++ libs/Smarty.class.php | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Smarty.addons.php b/Smarty.addons.php index 56f507e4..7ddf05d2 100644 --- a/Smarty.addons.php +++ b/Smarty.addons.php @@ -695,8 +695,6 @@ function smarty_func_assign_debug_info($args, &$smarty_obj) { $included_templates = $smarty_obj->_smarty_debug_info; - $smarty_obj->assign("_debug_expand", $smarty_obj->_smarty_debug_expand); - $smarty_obj->assign("_debug_keys", array_keys($assigned_vars)); $smarty_obj->assign("_debug_vals", array_values($assigned_vars)); diff --git a/Smarty.class.php b/Smarty.class.php index 5ac19d0d..1289aeb5 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -669,7 +669,7 @@ function _generate_debug_output() { ob_start(); $force_compile_orig = $this->force_compile; $this->force_compile = true; - $compile_path = $this->_get_compile_path($tpl_file); + $compile_path = $this->_get_compile_path($this->debug_tpl); if ($this->_process_template($this->debug_tpl, $compile_path)) { if ($this->show_info_include) { diff --git a/demo/index.php b/demo/index.php index 5acebb36..d3246dde 100644 --- a/demo/index.php +++ b/demo/index.php @@ -1,5 +1,7 @@ force_compile; $this->force_compile = true; - $compile_path = $this->_get_compile_path($tpl_file); + $compile_path = $this->_get_compile_path($this->debug_tpl); if ($this->_process_template($this->debug_tpl, $compile_path)) { if ($this->show_info_include) {