fix config file recompiling code

This commit is contained in:
mohrt
2003-03-11 15:31:22 +00:00
parent 1c6c58cabb
commit 8cf163198a
2 changed files with 4 additions and 6 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fix bug that makes config files recompile every time
(Nagger, Monte)
- add dpi functionality to html_image, change "name"
parameter to "file" (Thomas Shulz, Monte)
- fix height/width parameter index in html_image (Gerard,

View File

@@ -1301,13 +1301,9 @@ class Smarty
$_compile_config = true;
} else {
include($_compile_file);
if(!empty($_config_vars)) {
$_compile_config = true;
} else {
$_compile_config = false;
}
$_compile_config = empty($_config_vars);
}
if($_compile_config) {
if(!is_object($this->_conf_obj)) {
require_once SMARTY_DIR . $this->config_class . '.class.php';