mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix "once" var compiling to work with new attr compiling methods for include_php
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- fix "once" var compiling for include_php (Monte)
|
||||||
- added nl2br modifier to distribution (Monte)
|
- added nl2br modifier to distribution (Monte)
|
||||||
- added html_image to distribution (Monte)
|
- added html_image to distribution (Monte)
|
||||||
- added cat modifier to distribution (Monte)
|
- added cat modifier to distribution (Monte)
|
||||||
|
@@ -864,8 +864,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$assign_var = $this->_dequote($attrs['assign']);
|
$assign_var = $this->_dequote($attrs['assign']);
|
||||||
|
$once_var = ( $attrs['once'] == 'false' ) ? 'false' : 'true';
|
||||||
$once_var = ( $attrs['once'] === false ) ? 'false' : 'true';
|
|
||||||
|
|
||||||
foreach($attrs as $arg_name => $arg_value) {
|
foreach($attrs as $arg_name => $arg_value) {
|
||||||
if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name != 'assign') {
|
if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name != 'assign') {
|
||||||
|
Reference in New Issue
Block a user