Skip to content

Commit

Permalink
- bugfix template function data should be merged when loading subtemp…
Browse files Browse the repository at this point in the history
…late #240
  • Loading branch information
uwetews committed Jul 12, 2016
1 parent 38b1366 commit cbea88b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- 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
- 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
- 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
Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.30-dev/77';
const SMARTY_VERSION = '3.1.30-dev/78';

/**
* define variable scopes
Expand Down
2 changes: 1 addition & 1 deletion libs/sysplugins/smarty_internal_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public function _decodeProperties(Smarty_Internal_Template $tpl, $properties, $c
// $tpl->compiled->nocache_hash = $properties['nocache_hash'];
$resource->file_dependency = $properties[ 'file_dependency' ];
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' ]);
Expand Down

0 comments on commit cbea88b

Please sign in to comment.