fix "once" var compiling to work with new attr compiling methods for include_php

This commit is contained in:
mohrt
2003-02-28 15:45:42 +00:00
parent d785df41b3
commit 620674493a
2 changed files with 4 additions and 4 deletions

1
NEWS
View File

@@ -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)

View File

@@ -864,8 +864,7 @@ class Smarty_Compiler extends Smarty {
}
$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) {
if($arg_name != 'file' AND $arg_name != 'once' AND $arg_name != 'assign') {