Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

SimpleTemplate: if expression cannot contains string if

#135

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));@@

Reported by Charles Brunet · June 15th, 2009 @ 01:32 PM

State: resolved
Milestone: 5.0.3
Assigned to: Charles Brunet Charles Brunet

Activity

  1. Charles Brunet
    Charles Brunet
    • Tag changed from bug, templates to bug, patch, templates

    June 24th, 2009 @ 10:09 AM

  2. Charles Brunet
    Charles Brunet
    • State changed from new to resolved
    • Assigned user changed from lux to Charles Brunet

    July 24th, 2009 @ 12:00 PM

  3. Charles Brunet
    Charles Brunet
    • Milestone set to 5.0.3

    [milestone:id#47011 bulk edit command]

    August 7th, 2009 @ 09:41 AM

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.