From 1aba80321467ae74bb2829ec41f89fa20e3fc540 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 23 Sep 2023 14:02:50 +1200 Subject: [PATCH] Stop accessng _tpl_vars in smarty from property it's bad practice & it hard fails in smartyv3 --- CRM/Core/Smarty/plugins/function.help.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Smarty/plugins/function.help.php b/CRM/Core/Smarty/plugins/function.help.php index 754d2ec401..8ceeebaa9f 100644 --- a/CRM/Core/Smarty/plugins/function.help.php +++ b/CRM/Core/Smarty/plugins/function.help.php @@ -27,12 +27,12 @@ * the help html to be inserted */ function smarty_function_help($params, &$smarty) { - if (!isset($params['id']) || !isset($smarty->_tpl_vars['config'])) { + if (!isset($params['id']) || !isset($smarty->get_template_vars()['config'])) { return NULL; } - if (empty($params['file']) && isset($smarty->_tpl_vars['tplFile'])) { - $params['file'] = $smarty->_tpl_vars['tplFile']; + if (empty($params['file']) && isset($smarty->get_template_vars()['tplFile'])) { + $params['file'] = $smarty->get_template_vars()['tplFile']; } elseif (empty($params['file'])) { return NULL; -- 2.25.1