Skip to content

debug.tpl uses {Smarty::SMARTY_VERSION} but compiler thinks this is a disallowed static method call #1073

@j-applese3d

Description

@j-applese3d

Steps to reproduce:

  1. add {debug} to your .tpl file
  2. call $smarty->display('the_file.tpl');

Note the deprecation notice:

Using unregistered static method "Smarty::SMARTY_VERSION" in a template is deprecated and will be removed in a future release. Use Smarty::registerClass to explicitly register a class for access. in vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php on line 2430

I'm on Smarty Version 4.5.4.

<h1>Smarty {\Smarty\Smarty::SMARTY_VERSION} Debug Console

Suggest changing the above line to use {$smarty.version}, unless it's better to register the class -- in which case it should get registered within smarty_internal_debug.php

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