Skip to content

Commit

Permalink
Update setting of locale for recurring contribution receipts as per pr
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Jan 28, 2022
1 parent 1f00127 commit 70e3f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v3/Job/Monerisvaultrecurringcontributions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
<version>1.0</version>
<develStage>alpha</develStage>
<compatibility>
<ver>4.6</ver>
<ver>4.7</ver>
<ver>5.42</ver>
</compatibility>
<comments></comments>
<civix>
Expand Down

0 comments on commit 70e3f78

Please sign in to comment.