summaryrefslogtreecommitdiffstats
path: root/php-phpmailer6-layout.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpmailer6-layout.patch')
-rw-r--r--php-phpmailer6-layout.patch12
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)) {