From 383511d70528a6a670b73bd8e38d2c6ed9329e47 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 27 Mar 2018 14:09:41 +0200 Subject: update to 6.0.4 add patch to fix lang_path with RPM layout --- php-phpmailer6-layout.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 php-phpmailer6-layout.patch (limited to 'php-phpmailer6-layout.patch') 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)) { -- cgit