feat: implement email logging and test price mode functionality with QR code generation for order confirmations
This commit is contained in:
@@ -2607,14 +2607,13 @@ class PHPMailer
|
||||
if (!is_readable($path)) {
|
||||
throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
|
||||
}
|
||||
$magic_quotes = get_magic_quotes_runtime();
|
||||
$magic_quotes = function_exists('get_magic_quotes_runtime') ? get_magic_quotes_runtime() : false;
|
||||
if ($magic_quotes) {
|
||||
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
|
||||
set_magic_quotes_runtime(false);
|
||||
if (function_exists('set_magic_quotes_runtime')) {
|
||||
set_magic_quotes_runtime(false);
|
||||
}
|
||||
} else {
|
||||
//Doesn't exist in PHP 5.4, but we don't need to check because
|
||||
//get_magic_quotes_runtime always returns false in 5.4+
|
||||
//so it will never get here
|
||||
ini_set('magic_quotes_runtime', false);
|
||||
}
|
||||
}
|
||||
@@ -2622,7 +2621,9 @@ class PHPMailer
|
||||
$file_buffer = $this->encodeString($file_buffer, $encoding);
|
||||
if ($magic_quotes) {
|
||||
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
|
||||
set_magic_quotes_runtime($magic_quotes);
|
||||
if (function_exists('set_magic_quotes_runtime')) {
|
||||
set_magic_quotes_runtime($magic_quotes);
|
||||
}
|
||||
} else {
|
||||
ini_set('magic_quotes_runtime', $magic_quotes);
|
||||
}
|
||||
@@ -3921,4 +3922,4 @@ class phpmailerException extends Exception
|
||||
$errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
|
||||
return $errorMsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user