Steps to reproduce:
- add
{debug} to your .tpl file
- 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
Steps to reproduce:
{debug}to your .tpl file$smarty->display('the_file.tpl');Note the deprecation notice:
I'm on Smarty Version 4.5.4.
smarty/src/debug.tpl
Line 111 in a1b4c9c
Suggest changing the above line to use
{$smarty.version}, unless it's better to register the class -- in which case it should get registered withinsmarty_internal_debug.php