From 70e3f78f385b005b6139a1ed5c77973b50b85219 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 29 Jan 2022 09:18:29 +1100 Subject: [PATCH] Update setting of locale for recurring contribution receipts as per pr https://github.com/civicrm/civicrm-core/pull/21085 --- api/v3/Job/Monerisvaultrecurringcontributions.php | 2 +- info.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/v3/Job/Monerisvaultrecurringcontributions.php b/api/v3/Job/Monerisvaultrecurringcontributions.php index 17cae99..d64fd58 100644 --- a/api/v3/Job/Monerisvaultrecurringcontributions.php +++ b/api/v3/Job/Monerisvaultrecurringcontributions.php @@ -141,7 +141,7 @@ function civicrm_api3_job_Monerisvaultrecurringcontributions($params) { // FIXME: HACK for receipt in multilingual installation // but should be handled by CiviCRM core by default - CRM_Core_BAO_ActionSchedule::setCommunicationLanguage(CRM_Core_I18n::AUTO, $dao->preferred_language); + CRM_Core_I18n::singleton()->setLocale(CRM_Core_BAO_ActionSchedule::pickLocale(CRM_Core_I18n::AUTO, $dao->preferred_language)) // logging $currentlog = array( diff --git a/info.xml b/info.xml index af73f2b..1237031 100644 --- a/info.xml +++ b/info.xml @@ -12,8 +12,7 @@ 1.0 alpha - 4.6 - 4.7 + 5.42