File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1689,8 +1689,9 @@ protected function removeNLCallback($matches)
16891689 protected function spoolEmail ()
16901690 {
16911691 $ this ->unwrapSpecials ();
1692- $ protocol = $ this ->getProtocol ();
1693- $ method = 'sendWith ' . ucfirst ($ protocol );
1692+ $ protocol = $ this ->getProtocol ();
1693+ $ upperFirstProtocol = ucfirst ($ protocol );
1694+ $ method = 'sendWith ' . $ upperFirstProtocol ;
16941695
16951696 try {
16961697 $ success = $ this ->{$ method }();
@@ -1700,7 +1701,7 @@ protected function spoolEmail()
17001701 }
17011702
17021703 if (! $ success ) {
1703- $ message = lang ('Email.sendFailure ' . ($ protocol === 'mail ' ? 'PHPMail ' : ucfirst ( $ protocol ) ));
1704+ $ message = lang ('Email.sendFailure ' . ($ protocol === 'mail ' ? 'PHPMail ' : $ upperFirstProtocol ));
17041705
17051706 log_message ('error ' , 'Email: ' . $ message );
17061707 log_message ('error ' , $ this ->printDebuggerRaw ());
You can’t perform that action at this time.
0 commit comments