Skip to content
Snippets Groups Projects
Commit 88d95069 authored by Georg Ringer's avatar Georg Ringer Committed by Helmut Hummel
Browse files

[BUGFIX] Custom Swift_Transport impossible

Because of using a wrong variable for checking,
it is impossible to use a custom Swift_Transport
implementation.

Change-Id: Id1a337581642414ff8007de06e7d2e7df153cd79
Resolves: #36937
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/11062
Reviewed-by: Wouter Wolters
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
parent d119a48a
No related merge requests found
......@@ -141,7 +141,7 @@ class t3lib_mail_Mailer extends Swift_Mailer {
default:
// Custom mail transport
$customTransport = t3lib_div::makeInstance($mailSettings['transport'], $mailSettings);
if ($this->transport instanceof Swift_Transport) {
if ($customTransport instanceof Swift_Transport) {
$this->transport = $customTransport;
} else {
throw new RuntimeException(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment