Skip to content
Snippets Groups Projects
Commit 1b58a07c authored by ericLemanissier's avatar ericLemanissier
Browse files

Split translated string

removed string of random token and newline chars from translated log string
parent 2cf6e374
Branches
Tags
No related merge requests found
...@@ -514,7 +514,8 @@ class Mailer { ...@@ -514,7 +514,8 @@ class Mailer {
// Force reconnect on next ->send() // Force reconnect on next ->send()
unset($smtp_connections[$key]); unset($smtp_connections[$key]);
$alert=sprintf(_S("Unable to email via SMTP:%1\$s:%2\$d [%3\$s]\n\n%4\$s\n"), $alert=_S("Unable to email via SMTP")
.sprintf(":%1\$s:%2\$d [%3\$s]\n\n%4\$s\n",
$smtp['host'], $smtp['port'], $smtp['username'], $result->getMessage()); $smtp['host'], $smtp['port'], $smtp['username'], $result->getMessage());
$this->logError($alert); $this->logError($alert);
} }
...@@ -527,7 +528,8 @@ class Mailer { ...@@ -527,7 +528,8 @@ class Mailer {
if(!PEAR::isError($result)) if(!PEAR::isError($result))
return $messageId; return $messageId;
$alert=sprintf(_S("Unable to email via php mail function:%1\$s\n\n%2\$s\n"), $alert=_S("Unable to email via php mail function")
.sprintf(":%1\$s\n\n%2\$s\n",
$to, $result->getMessage()); $to, $result->getMessage());
$this->logError($alert); $this->logError($alert);
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment