Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi condition IF #54

Closed
tomsjac opened this issue Jun 15, 2015 · 1 comment
Closed

multi condition IF #54

tomsjac opened this issue Jun 15, 2015 · 1 comment

Comments

@tomsjac
Copy link

tomsjac commented Jun 15, 2015

Server : Debian
Version php : 5.5.15
Version Smarty : 3.1.24

Code TPL :

{if $page.module == $moduleCourant 
    and ($page.page == $pageCourante )
    and ($page.action == '' or $page.action == $actionCourante)
} 
....
{/if}

Error :

Parse error: syntax error, unexpected '(' in /srv/scm/*/*/app/storage/templates_compil/442cd046018da1e81e070092bdba8ed93b254f84_0.file.header.tpl.php on line 213

TPL compil :

<?php if ($_smarty_tpl->tpl_vars['page']->value['module'] == $_smarty_tpl->tpl_vars['moduleCourant']->value($_smarty_tpl->tpl_vars['page']->value['page'] == $_smarty_tpl->tpl_vars['pageCourante']->value)($_smarty_tpl->tpl_vars['page']->value['action'] == '' || $_smarty_tpl->tpl_vars['page']->value['action'] == $_smarty_tpl->tpl_vars['actionCourante']->value)) {?> 

it lacks the condition : and

@uwetews
Copy link
Contributor

uwetews commented Jun 15, 2015

This is already solved
See #48

@uwetews uwetews closed this as completed Jun 15, 2015
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
…ation-reservation-information-corresponds-to-a-reservation-registered-from-saloriza

Redmine-#5289:連携予約情報 サロリザから登録された予約に対応する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants