Fix for getvar in smarty 4.0

This commit is contained in:
Clemens Schwaighofer
2022-01-19 16:38:58 +09:00
parent 974c0fb92f
commit f4e72dd7b1

View File

@@ -172,7 +172,7 @@ class SmartyExtend4 extends Smarty
// iinit lang
$this->l10n = new \CoreLibs\Language\L10n($this->lang);
/** @phpstan-ignore-next-line */
$this->registerPlugin('modifier', 'getvar', [&$this, 'get_template_vars']);
$this->registerPlugin('modifier', 'getvar', [&$this, 'getTemplateVars']);
$this->page_name = pathinfo($_SERVER["PHP_SELF"])['basename'];