From 1d5f41c64bde011870deb5b06518fdf97a192daf Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 3 Jul 2002 20:32:44 +0000 Subject: [PATCH] only set $debug_tpl in constructor if empty --- Smarty.class.php | 7 +++++-- libs/Smarty.class.php | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 0269c861..172eccd4 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -210,8 +210,11 @@ class Smarty } } } - // look for debug template in the SMARTY_DIR - $this->debug_tpl = SMARTY_DIR.'debug.tpl'; + + if(empty($this->debug_tpl)) { + // set path to debug template from SMARTY_DIR + $this->debug_tpl = SMARTY_DIR.'debug.tpl'; + } } diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 0269c861..172eccd4 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -210,8 +210,11 @@ class Smarty } } } - // look for debug template in the SMARTY_DIR - $this->debug_tpl = SMARTY_DIR.'debug.tpl'; + + if(empty($this->debug_tpl)) { + // set path to debug template from SMARTY_DIR + $this->debug_tpl = SMARTY_DIR.'debug.tpl'; + } }