Parser problem with {if...} ?

From: Date: Thu, 26 Dec 2002 18:36:17 +0000
Subject: Parser problem with {if...} ?
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-492@lists.php.net to get a copy of this message
Greetings, I have the following {if...} in my template: {if $aItem.start_date|date_format:"%B %Y" ne $monthyear} And this is what gets generated: <?php if ($this->_run_mod_handler('date_format', true, $this->_tpl_vars['aItem']['start_date'], "%B) %Y" != $this->_tpl_vars['monthyear']): ?> Notice the close paren *in* the date format string instead of after it. Any idea what might be causing this? I'm running Smarty 2.3.1 on Apache 1.3.27/FreeBSD 4.7 and IIS/NT 4.somthing, both servers give the error. Removing the space between the %B and %Y prevents the error but does not generate the desired output. I can provide the complete template if necessary. Thanks, Matthew

« previous php.smarty.dev (#492) next »