mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-09 12:54:26 +02:00
fix bug with replacing cache tags (thanks mankyd)
This commit is contained in:
@@ -25,7 +25,7 @@ function smarty_core_process_compiled_include($params, &$smarty)
|
|||||||
$smarty->_include($_include_file_path, true);
|
$smarty->_include($_include_file_path, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($smarty->_cache_serials as $_include_file_path=>$_cache_serial) {
|
foreach ($smarty->_cache_info['cache_serials'] as $_include_file_path=>$_cache_serial) {
|
||||||
$_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
|
$_return = preg_replace_callback('!(\{nocache\:('.$_cache_serial.')#(\d+)\})!s',
|
||||||
array(&$smarty, '_process_compiled_include_callback'),
|
array(&$smarty, '_process_compiled_include_callback'),
|
||||||
$_return);
|
$_return);
|
||||||
|
Reference in New Issue
Block a user