-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/core#4146 Remove (old) Smarty-forward incompatible syntax from Address.tpl #25669
Conversation
No issue was found matching the number given in the pull request title. Please check the issue number. |
(Standard links)
|
b99720b
to
2cfc61c
Compare
I'll give this a quick run with a real geocode I just want to understand what is incompatible: As far as I know this is not "old code" and in "modern" smarty the backticks still serve a purpose to allow e.g. putting expressions with a |
@demeritcowboy it hard fails on Smarty3 |
It shouldn't, according to smarty docs. Are you using escape-by-default with it? |
@demeritcowboy hmm - it's toggling between the 2 smarty versions, not changing escape by default that matters. I think v3 is always escape by default |
It's just given all the other things that need fixing it would be good to determine if this is actually something that needs changing and what the incompatibility is caused by, since I expect there's a lot of backticks. Is it something like templates_c just needs clearing between toggling, because it compiles differently? |
@demeritcowboy it wasn't my impression that it was a common syntax - if you want to try firing up Smartyv3 it is possible with WIP patches + an extension & a define (you can toggle back & forth on the define) https://lab.civicrm.org/dev/core/-/issues/4146 |
grep -r "`" templates | wc -l |
@demeritcowboy I'll grap some screenshots of the fatal error next time |
Overview
dev/core#4146 Remove (old) Smarty-forward incompatible syntax from Address.tpl
Before
Use of ` in the template is not forward compatible - see https://lab.civicrm.org/dev/core/-/issues/4146
After
The url on
map
still has location type id (lid
- civicrm/contact/map?reset=1&cid=203&lid=1)Technical Details
To r-run this I had to enable google geocoding with fake credentials AND add a fake geocode for the address
Comments