diff options
author | Remi Collet <remi@remirepo.net> | 2018-03-27 14:09:41 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-03-27 14:09:41 +0200 |
commit | 383511d70528a6a670b73bd8e38d2c6ed9329e47 (patch) | |
tree | 8c6d14aea15d2bda61b5d8c1de02b6385b15b19b /php-phpmailer6-layout.patch | |
parent | 850bf2de8bbd2df4d7981977854879c60a711dce (diff) |
update to 6.0.4
add patch to fix lang_path with RPM layout
Diffstat (limited to 'php-phpmailer6-layout.patch')
-rw-r--r-- | php-phpmailer6-layout.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/php-phpmailer6-layout.patch b/php-phpmailer6-layout.patch new file mode 100644 index 0000000..1d287f3 --- /dev/null +++ b/php-phpmailer6-layout.patch @@ -0,0 +1,12 @@ +diff -up ./src/PHPMailer.php.rpm ./src/PHPMailer.php +--- ./src/PHPMailer.php.rpm 2018-03-27 14:01:40.736223588 +0200 ++++ ./src/PHPMailer.php 2018-03-27 14:02:31.291471961 +0200 +@@ -1994,7 +1994,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)) { |