Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Throw deprecation notice about unregistered functions without changing the compilation flow #985

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

wisskid
Copy link
Member

@wisskid wisskid commented Apr 5, 2024

Fixes #964

@wisskid wisskid merged commit 9656f55 into support/4 Apr 5, 2024
12 checks passed

if (
!$this->smarty->loadPlugin('smarty_modifiercompiler_' . $name)
&& !isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it only checks PLUGIN_MODIFIER but not PLUGIN_FUNCTION?

Do I need to register sprintf (for example) as modifier and function at the same time?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants