Skip to content

Commit

Permalink
Correct Armenian language code
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Apr 17, 2020
1 parent a12c95e commit c1c38e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# PHPMailer Change Log

* Correct Armenian ISO language code from `am` to `hy`, add mapping for fallback
* Use correct timeout property in debug output

## Version 6.1.5 (March 14th, 2020
* Reject invalid custom headers that are empty or contain breaks
* Various fixes for DKIM issues, especially when using `mail()` transport
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src/PHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,7 @@ public function setLanguage($langcode = 'en', $lang_path = '')
'se' => 'sv',
'rs' => 'sr',
'tg' => 'tl',
'am' => 'hy',
];

if (isset($renamed_langcodes[$langcode])) {
Expand Down

0 comments on commit c1c38e3

Please sign in to comment.