only set $debug_tpl in constructor if empty

This commit is contained in:
mohrt
2002-07-03 20:32:44 +00:00
parent 32ec082214
commit 1d5f41c64b
2 changed files with 10 additions and 4 deletions

View File

@@ -210,9 +210,12 @@ class Smarty
} }
} }
} }
// look for debug template in the SMARTY_DIR
if(empty($this->debug_tpl)) {
// set path to debug template from SMARTY_DIR
$this->debug_tpl = SMARTY_DIR.'debug.tpl'; $this->debug_tpl = SMARTY_DIR.'debug.tpl';
} }
}
/*======================================================================*\ /*======================================================================*\

View File

@@ -210,9 +210,12 @@ class Smarty
} }
} }
} }
// look for debug template in the SMARTY_DIR
if(empty($this->debug_tpl)) {
// set path to debug template from SMARTY_DIR
$this->debug_tpl = SMARTY_DIR.'debug.tpl'; $this->debug_tpl = SMARTY_DIR.'debug.tpl';
} }
}
/*======================================================================*\ /*======================================================================*\