diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-08-11 17:56:27 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-08-11 17:56:27 +0200 |
commit | 1ad06b661c30d4b95d7e5902553c5d41730bacf9 (patch) | |
tree | fab84d382f453f1b0e01460277d239c32eb8aa47 /PHPMailer-path.patch | |
parent | bd0d3754a85b551296feb52acbce8872fd0fd3a5 (diff) |
php-PHPMailer: 5.2.8
Diffstat (limited to 'PHPMailer-path.patch')
-rw-r--r-- | PHPMailer-path.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/PHPMailer-path.patch b/PHPMailer-path.patch new file mode 100644 index 0000000..8710029 --- /dev/null +++ b/PHPMailer-path.patch @@ -0,0 +1,20 @@ +diff -up ./class.phpmailer.php.rpm ./class.phpmailer.php +--- ./class.phpmailer.php.rpm 2014-08-11 16:53:52.616058389 +0200 ++++ ./class.phpmailer.php 2014-08-11 17:14:27.562681744 +0200 +@@ -1170,6 +1170,7 @@ class PHPMailer + public function getSMTPInstance() + { + if (!is_object($this->smtp)) { ++ require_once 'class.smtp.php'; + $this->smtp = new SMTP; + } + return $this->smtp; +@@ -1394,7 +1395,7 @@ class PHPMailer + ); + if (empty($lang_path)) { + //Calculate an absolute path so it can work if CWD is not here +- $lang_path = dirname(__FILE__). DIRECTORY_SEPARATOR . 'language'. DIRECTORY_SEPARATOR; ++ $lang_path = '/usr/share/PHPMailer/language/'; + } + $foundlang = true; + $lang_file = $lang_path . 'phpmailer.lang-' . $langcode . '.php'; |