Smarty 5.4 fails with any plugin that ends in 'close' #1121
Closed
jamelzouaghui
started this conversation in
General
Replies: 2 comments 1 reply
-
That doesn't seem right. Can you provide a full code example with a .php and a .tpl file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
.tpl ---> {window_close} in the file /vendor/smarty/smarty/src/compiler/Template.php the function getBaseTag($tag) checked if the plugin ends with close or not
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
registerPlugin('function', 'window_close', 'smarty_function_window_close');
error :: PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error
"{window_close}" unknown tag 'window_close'
changing the plugin name to 'window_toto' and the call in the template to {window_toto} provides the expected output.
Beta Was this translation helpful? Give feedback.
All reactions