smarty
smarty copied to clipboard
no deprecated warning for time with smarty4
with smarty 4 php function time() can be used in templates and does not display any warning
{$duration = date(time()) - $uptimeLastActiv}
since it's not working anymore with smarty 5, I expected a warning to be display like:
PHP Deprecated: Using unregistered function "time" in a template is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier.
to allow developers to change their template before migrating to smarty 5
I agree. You are saying it doesn't?
yes, it does not display any warning. If I apply modification from PR #1115, it correctly display a warning a the compilation time like other php functions.