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.28 regression? #132

Closed
JayBizzle opened this issue Dec 15, 2015 · 1 comment
Closed

3.1.28 regression? #132

JayBizzle opened this issue Dec 15, 2015 · 1 comment

Comments

@JayBizzle
Copy link

Don't know if this was intentional, but thought i'd mention it...

I had a template that had this in it {$smarty.now|date_format:"%Y"-2007} which worked pre v3.1.28

It was easily fixed by wrapping the date function in brackets like so {($smarty.now|date_format:"%Y")-2007}

The error was

Uncaught  --> Smarty Compiler: Syntax error in template "file:/home/xxxxxxx/public_html/modules/xxxxxxx/views/xxxxxxx.tpl"  on line 14 "xxxxxxx {$smarty.now|date_format:"%Y"-2007} xxxxxxx."  - Unexpected "-", expected one of: "}" <-- thrown
@uwetews
Copy link
Contributor

uwetews commented Dec 18, 2015

This regression is now fixed in the master branch

@uwetews uwetews closed this as completed Dec 18, 2015
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