- bugfix template function data should be merged when loading subtemplate https://github.com/smarty-php/smarty/issues/240

This commit is contained in:
uwetews
2016-07-13 01:42:54 +02:00
parent 38b13661fe
commit cbea88b3a7
3 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,8 @@
- bugfix PHP 7 compatibility on registered compiler plugins https://github.com/smarty-php/smarty/issues/241 - bugfix PHP 7 compatibility on registered compiler plugins https://github.com/smarty-php/smarty/issues/241
- update testInstall() https://github.com/smarty-php/smarty/issues/248https://github.com/smarty-php/smarty/issues/248 - update testInstall() https://github.com/smarty-php/smarty/issues/248https://github.com/smarty-php/smarty/issues/248
- bugfix enable debugging could fail when template objects did already exists https://github.com/smarty-php/smarty/issues/237 - bugfix enable debugging could fail when template objects did already exists https://github.com/smarty-php/smarty/issues/237
- bugfix template function data should be merged when loading subtemplate https://github.com/smarty-php/smarty/issues/240
12.07.2016 12.07.2016
- bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239 - bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239
- bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247 - bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247

View File

@@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.30-dev/77'; const SMARTY_VERSION = '3.1.30-dev/78';
/** /**
* define variable scopes * define variable scopes

View File

@@ -482,7 +482,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
// $tpl->compiled->nocache_hash = $properties['nocache_hash']; // $tpl->compiled->nocache_hash = $properties['nocache_hash'];
$resource->file_dependency = $properties[ 'file_dependency' ]; $resource->file_dependency = $properties[ 'file_dependency' ];
if (isset($properties[ 'tpl_function' ])) { if (isset($properties[ 'tpl_function' ])) {
$tpl->tpl_function = $properties[ 'tpl_function' ]; $tpl->tpl_function = array_merge($tpl->tpl_function, $properties[ 'tpl_function' ]);
} }
} }
return $is_valid && !function_exists($properties[ 'unifunc' ]); return $is_valid && !function_exists($properties[ 'unifunc' ]);