Skip to content

no deprecated warning for time with smarty4 #1114

@shadowwa

Description

@shadowwa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions