mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +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"
|
- add dpi functionality to html_image, change "name"
|
||||||
parameter to "file" (Thomas Shulz, Monte)
|
parameter to "file" (Thomas Shulz, Monte)
|
||||||
- fix height/width parameter index in html_image (Gerard,
|
- fix height/width parameter index in html_image (Gerard,
|
||||||
|
@@ -1301,13 +1301,9 @@ class Smarty
|
|||||||
$_compile_config = true;
|
$_compile_config = true;
|
||||||
} else {
|
} else {
|
||||||
include($_compile_file);
|
include($_compile_file);
|
||||||
if(!empty($_config_vars)) {
|
$_compile_config = empty($_config_vars);
|
||||||
$_compile_config = true;
|
|
||||||
} else {
|
|
||||||
$_compile_config = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($_compile_config) {
|
if($_compile_config) {
|
||||||
if(!is_object($this->_conf_obj)) {
|
if(!is_object($this->_conf_obj)) {
|
||||||
require_once SMARTY_DIR . $this->config_class . '.class.php';
|
require_once SMARTY_DIR . $this->config_class . '.class.php';
|
||||||
|
Reference in New Issue
Block a user