mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix config file recompiling code
This commit is contained in:
2
NEWS
2
NEWS
@@ -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,
|
||||
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user