cvs: smarty / NEWS /libs Smarty.class.php
| From: | Monte Ohrt | Date: | Tue, 11 Mar 2003 15:31:22 +0000 |
| Subject: | cvs: smarty / NEWS /libs Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-449@lists.php.net to get a copy of this message | ||
mohrt Tue Mar 11 10:31:22 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
fix config file recompiling code
Index: smarty/NEWS
diff -u smarty/NEWS:1.303 smarty/NEWS:1.304
--- smarty/NEWS:1.303 Fri Mar 7 12:06:39 2003
+++ smarty/NEWS Tue Mar 11 10:31:21 2003
@@ -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,
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.361 smarty/libs/Smarty.class.php:1.362
--- smarty/libs/Smarty.class.php:1.361 Thu Mar 6 10:42:48 2003
+++ smarty/libs/Smarty.class.php Tue Mar 11 10:31:22 2003
@@ -1301,13 +1301,9 @@
$_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';