Replace getTemplateVars() in test, assignTemplateVariables
authoreileen <emcnaughton@wikimedia.org>
Tue, 2 Jan 2024 08:24:50 +0000 (21:24 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 2 Jan 2024 08:24:50 +0000 (21:24 +1300)
CRM/Core/Smarty.php
tests/extensions/test.extension.manager.reporttest/main.php

index 4a921d9858473dab76a76485a378d877f31a8c58..593f5486a8d18e8815fcb5d8758b0f7001e5fd92 100644 (file)
@@ -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);
       }
     }
index 96d1b7657b814cde2c4a6529de5dca98757f4156..67f8e927f5feaaae528123389193650734d6435d 100644 (file)
@@ -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