Re: [SMARTY] Bug report: Smarty.const._SOME_CONST still broken in IF statement?
| From: | Monte Ohrt | Date: | Sun, 16 Feb 2003 19:43:20 +0000 |
| Subject: | Re: [SMARTY] Bug report: Smarty.const._SOME_CONST still broken in IF statement? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7788@lists.php.net to get a copy of this message | ||
fix committed to CVS
On Sat, 2003-02-15 at 10:08, Ruslan Savchyshyn wrote:
> Hello
>
> Using smarty 2.4.1 (with const patched manually) or latest 2.4.2.
>
> {if $counter mod $smarty.const._CARS_PER_PAGE == 0}text{/if}
> Doesn't work.
>
> {assign var=per_line value=$smarty.const._CARS_PER_PAGE}
> {if $counter mod $per_line == 0}text{/if}
> Works great, but is workaround.
>
> ------------------------
> Ruslan aka SavaJr
--
Monte Ohrt <monte@ispi.net>