projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
ad274e6
)
Allow parenthesis before hasPerm in smarty templates
author
Nicolas Iooss
<nicolas.iooss_git@polytechnique.org>
Mon, 26 May 2014 21:14:00 +0000
(23:14 +0200)
committer
Nicolas Iooss
<nicolas.iooss_git@polytechnique.org>
Sun, 1 Jun 2014 19:27:29 +0000
(21:27 +0200)
In smarty templates, this syntax works fine:
{if !hasPerm('directory_private') && other_test() }
... but not this one:
{if (!hasPerm('directory_private') || test1()) && test2()}
... because the regexp which handle hasPerm "function" in smarty does
not support parenthesis.
Fix this bug by explicitly allowing space and open parenthesis before
hasPerm().
No differences found