mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +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 html_image to distribution (Monte)
|
||||
- added cat modifier to distribution (Monte)
|
||||
|
@@ -863,10 +863,9 @@ class Smarty_Compiler extends Smarty {
|
||||
$this->_syntax_error("missing 'file' attribute in include_php tag", E_USER_ERROR, __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
$assign_var = $this->_dequote($attrs['assign']);
|
||||
|
||||
$once_var = ( $attrs['once'] === false ) ? 'false' : 'true';
|
||||
|
||||
$assign_var = $this->_dequote($attrs['assign']);
|
||||
$once_var = ( $attrs['once'] == 'false' ) ? 'false' : 'true';
|
||||
|
||||
foreach($attrs as $arg_name => $arg_value) {
|
||||
if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name != 'assign') {
|
||||
if(is_bool($arg_value))
|
||||
|
Reference in New Issue
Block a user