- bugfix compileAllConfig() was broken since 3.1.22 because of the changes in config file processing

This commit is contained in:
Uwe Tews
2015-08-03 21:39:30 +02:00
parent f2585a035c
commit 201ea13a33
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
 ===== 3.1.28-dev===== (xx.xx.2015)
03.08.2015
- rework clear cache methods
- bugfix compileAllConfig() was broken since 3.1.22 because of the changes in config file processing
02.08.2015
- optimization and code cleanup of {foreach} and {section} compiler

View File

@@ -154,9 +154,11 @@ class Smarty_Internal_Utility
flush();
$_start_time = microtime(true);
try {
$_config = new Smarty_Internal_Config($_config_file, $smarty);
if ($_config->mustCompile()) {
$_config->compileConfigSource();
$confObj = new $smarty->template_class($_config_file, $smarty);
$confObj->caching = Smarty::CACHING_OFF;
$confObj->source = Smarty_Template_Config::load($confObj);
if ($confObj->mustCompile()) {
$confObj->compileTemplateSource();
$_count ++;
echo ' compiled in ', microtime(true) - $_start_time, ' seconds';
flush();