mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- buxfix on assigning array elements inside templates
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
10/15/2009
|
||||
- buxfix on assigning array elements inside templates
|
||||
|
||||
10/15/2009
|
||||
- allow bit operator '&' inside {if} tag
|
||||
- implementation of ternary operator
|
||||
|
@@ -58,7 +58,7 @@ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase {
|
||||
if ($_attr['index'] == '') {
|
||||
return "<?php \$_smarty_tpl->append($_attr[var],$_attr[value],false,$_nocache,$_scope);?>";
|
||||
} else {
|
||||
return "<?php \$_tmp$_attr[index] = $_attr[value]; \$_smarty_tpl->append($_attr[var],\$_tmp,true,$_nocache,$_scope);?>";
|
||||
return "<?php \$_tmp$_attr[index] = $_attr[value]; \$_smarty_tpl->append($_attr[var],\$_tmp,true,$_nocache,$_scope); unset (\$_tmp);?>";
|
||||
}
|
||||
} else {
|
||||
return "<?php \$_smarty_tpl->assign($_attr[var],$_attr[value],$_nocache,$_scope);?>";
|
||||
|
Reference in New Issue
Block a user