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,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';
}
}

View File

@@ -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';
}
}