#135 ✓resolved
Charles Brunet

SimpleTemplate: if expression cannot contains string if

Reported by Charles Brunet | June 15th, 2009 @ 01:32 PM | in 5.0.3 (closed)

In SimpleTemplate, expression like @@{if actif eq 'oui'}@@ doesn't work because it is evaluated as @@{if acteq 'oui'}@@.

Solution. In saf/lib/Template/Simple.php, line 499, replace:
@@$php = $sh->transform (str_replace ('if ', '', $var));@@ with
@@$php = $sh->transform (substr ($var, 3));@@

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Sitellite web content management system.

People watching this ticket

Pages