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

3.1.24 raise "too many shorthand attributes" #42

Closed
remicollet opened this issue May 24, 2015 · 2 comments
Closed

3.1.24 raise "too many shorthand attributes" #42

remicollet opened this issue May 24, 2015 · 2 comments

Comments

@remicollet
Copy link

While 3.1.23 was ok, since update to 3.1.24 some template are borken

 Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "smarty/templates/rpmphp/zoom.tpl"
 on line 71 "<td>{if $p->repo_main neq $prev}<strong>{$p->repo_main}</strong>{/if}</td>"
 too many shorthand attributes <-- thrown in /usr/share/php/Smarty/sysplugins smarty_internal_templatecompilerbase.php on line 71

Looks like a regression.

@remicollet
Copy link
Author

Notice, switching to {if $p->repo_main != $prev} seems to workaround this issue.

@uwetews
Copy link
Contributor

uwetews commented May 24, 2015

Grr, I had a typo neg instead of neq And just this was missing in the Unit test.

The patch is in dev-master

@uwetews uwetews closed this as completed May 24, 2015
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this issue Mar 22, 2023
Merge release-2.0.5 release branch into master
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