Re: problem with math funciton in 2.6.4 stable
Robert Amos <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
This was a known bug in 2.6.4 and was fixed for 2.6.5-dev (that which is in cvs now) -bok On Sat, 11 Sep 2004 17:39:44 +0200, [email protected] <[email protected]> wrote: > 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 > > -- Xnyo - http://xnyo.odynia.org/ -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php