problem with math funciton in 2.6.4 stable
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I had a problem with a math function: (2.6.4 stable)
var session_time = {$sys_lifetime*1000};
var session_time2 = {$sys_lifetime};
gets compiled to:
var session_time = ;
var session_time2 = <?php echo
((is_array($_tmp=$this->_tpl_vars['sys_lifetime'])) ?
$this->_run_mod_handler('modify_quotehtml', true, $_tmp) :
modify_quotehtml($_tmp)); ?>
Using the latest dev-version from cvs it works again as in 2.6.3 stable:
var session_time = <?php echo
((is_array($_tmp=$this->_tpl_vars['sys_lifetime']*1000)) ?
$this->_run_mod_handler('modify_quotehtml', true, $_tmp) :
modify_quotehtml($_tmp)); ?>
;
var session_time2 = <?php echo
((is_array($_tmp=$this->_tpl_vars['sys_lifetime'])) ?
$this->_run_mod_handler('modify_quotehtml', true, $_tmp) :
modify_quotehtml($_tmp)); ?>
;
bye
tom
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php