On Tue, 18 Jun 2002, Lamprecht, Peter Claus wrote:

> But I found a small bug in version 2.5:
>
> In the documentation the "loop_context_vars" are written in uppercase like
> "__FIRST__". In the module these vars are defined in lowercase like
> "__first__".
> If you use the parameters
>      loop_context_vars => 1
>      case_sensitive => 1
> then the <TMPL_IF NAME=__FIRST__> ... </TMPL_IF> does not work.
> <TMPL_IF NAME=__first__> ... </TMPL_IF> works!

Correct, that is a bug.

> I decided to change in the module every occurrence of __first__,
> __inner__, __last__ and __odd__ into __FIRST__,
> __INNER__, __LAST__ and __ODD__. Now everything works fine as in the
> documentation desribed.

I think that's the opposite from the fix I'll use.  People are already
using loop_context_vars with case_sensitive so I can't just change the
behavior out from under them.  Instead I'll fix the documentation and add
a note in the case_sensitive docs.

Thanks for the help!

-sam




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to