From: eileen Date: Tue, 2 Jan 2024 08:24:50 +0000 (+1300) Subject: Replace getTemplateVars() in test, assignTemplateVariables X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1f106c686acc20291fa7bf743e359b62bc52c1d8;p=civicrm-core.git Replace getTemplateVars() in test, assignTemplateVariables --- diff --git a/CRM/Core/Smarty.php b/CRM/Core/Smarty.php index 4a921d9858..593f5486a8 100644 --- a/CRM/Core/Smarty.php +++ b/CRM/Core/Smarty.php @@ -215,7 +215,7 @@ class CRM_Core_Smarty extends CRM_Core_SmartyCompatibility { */ public function ensureVariablesAreAssigned(array $variables): void { foreach ($variables as $variable) { - if (!isset($this->get_template_vars()[$variable])) { + if (!isset($this->getTemplateVars()[$variable])) { $this->assign($variable); } } diff --git a/tests/extensions/test.extension.manager.reporttest/main.php b/tests/extensions/test.extension.manager.reporttest/main.php index 96d1b7657b..67f8e927f5 100644 --- a/tests/extensions/test.extension.manager.reporttest/main.php +++ b/tests/extensions/test.extension.manager.reporttest/main.php @@ -36,7 +36,7 @@ class test_extension_manager_reporttest extends CRM_Core_Report { if ($this->cid) { // link back to contact summary $this->assign('backURL', CRM_Utils_System::url('civicrm/contact/view', "reset=1&selectedChild=log&cid={$this->cid}", FALSE, NULL, FALSE)); - $this->assign('revertURL', self::$_template->get_template_vars('revertURL') . "&cid={$this->cid}"); + $this->assign('revertURL', self::$_template->getTemplateVars('revertURL') . "&cid={$this->cid}"); } else { // link back to summary report