blob: 8f254eccd2deb3edfd8fd20359dfb2ac15515463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -up ./src/PHPMailer.php.rpm ./src/PHPMailer.php
--- ./src/PHPMailer.php.rpm 2021-02-24 09:34:44.854775099 +0100
+++ ./src/PHPMailer.php 2021-02-24 09:35:04.783696615 +0100
@@ -2215,7 +2215,7 @@ class PHPMailer
];
if (empty($lang_path)) {
//Calculate an absolute path so it can work if CWD is not here
- $lang_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR;
+ $lang_path = __DIR__ . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR;
}
//Validate $langcode
if (!preg_match('/^[a-z]{2}(?:_[a-zA-Z]{2})?$/', $langcode)) {
|