Forums / Cotonti / Support / cache problems?

tensh
#35857 2012-10-19 13:39

Hi;

I want to include a tpl based on location and lang.


This code works:

<!-- IF {PHP.env.ext} == "contact" AND {PHP.lang} == 'pl' -->	

		{FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/pl-{PHP.env.ext}.tpl"}

<!-- ENDIF -->

but this one doesn't work:

<!-- IF {PHP.env.ext} == "contact" -->	

		{FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/{PHP.lang}-{PHP.env.ext}.tpl"}

<!-- ENDIF -->

Why? The second one would be easier, now I have to repeat the same code for all 3 languages