diff --git a/change_log.txt b/change_log.txt index dff467d0..f3721e28 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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 diff --git a/libs/sysplugins/smarty_internal_utility.php b/libs/sysplugins/smarty_internal_utility.php index a6405722..5679198e 100644 --- a/libs/sysplugins/smarty_internal_utility.php +++ b/libs/sysplugins/smarty_internal_utility.php @@ -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();