From 1f106c686acc20291fa7bf743e359b62bc52c1d8 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 2 Jan 2024 21:24:50 +1300 Subject: [PATCH] Replace getTemplateVars() in test, assignTemplateVariables --- CRM/Core/Smarty.php | 2 +- tests/extensions/test.extension.manager.reporttest/main.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1