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

Register custom Smarty modifiers only once #42

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

jensschuppe
Copy link
Collaborator

This fixes errors when the code registering modifiers is being called multiple times per request.

Note

This does not check for whether the modifiers have been registered elsewhere in the Smarty instance.

@jensschuppe jensschuppe added bug status:needs review Code needs review and testing labels Mar 21, 2024
@jensschuppe jensschuppe added this to the 1.2 milestone Mar 21, 2024
@jaapjansma
Copy link

I can confirm that this PR works!

@jensschuppe jensschuppe added status:reviewed and tested Code has received thorough review and test and is ready to be committed/merged and removed status:needs review Code needs review and testing labels Apr 8, 2024
@jensschuppe jensschuppe merged commit bc1a29c into master Apr 8, 2024
@jensschuppe jensschuppe added status:fixed The issue has been resolved (usually by committing/merging code) and removed status:reviewed and tested Code has received thorough review and test and is ready to be committed/merged labels Apr 8, 2024
@jensschuppe jensschuppe deleted the smartyModifiers branch April 8, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:fixed The issue has been resolved (usually by committing/merging code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants