mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
- bugfix compileAllConfig() was broken since 3.1.22 because of the changes in config file processing
This commit is contained in:
@@ -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
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user