mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/8558] Use only one variable and improve explain string
PHPBB3-8558
This commit is contained in:
parent
809054abfd
commit
59cdc26fb4
2 changed files with 5 additions and 17 deletions
|
@ -484,28 +484,16 @@ class messenger
|
||||||
$use_queue = true;
|
$use_queue = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$board_contact = (($config['board_contact_name']) ? '"' . mail_encode($config['board_contact_name']) . '" ' : '') . '<' . $config['board_contact'] . '>';
|
||||||
|
|
||||||
if (empty($this->replyto))
|
if (empty($this->replyto))
|
||||||
{
|
{
|
||||||
if ($config['board_contact_name'])
|
$this->replyto = $board_contact;
|
||||||
{
|
|
||||||
$this->replyto = '"' . mail_encode($config['board_contact_name']) . '" <' . $config['board_contact'] . '>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->replyto = '<' . $config['board_contact'] . '>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($this->from))
|
if (empty($this->from))
|
||||||
{
|
{
|
||||||
if ($config['board_contact_name'])
|
$this->from = $board_contact;
|
||||||
{
|
|
||||||
$this->from = '"' . mail_encode($config['board_contact_name']) . '" <' . $config['board_contact'] . '>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->from = '<' . $config['board_contact'] . '>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
|
$encode_eol = ($config['smtp_delivery']) ? "\r\n" : $this->eol;
|
||||||
|
|
|
@ -525,7 +525,7 @@ $lang = array_merge($lang, array(
|
||||||
'CONTACT_EMAIL' => 'Contact email address',
|
'CONTACT_EMAIL' => 'Contact email address',
|
||||||
'CONTACT_EMAIL_EXPLAIN' => 'This address will be used whenever a specific contact point is needed, e.g. spam, error output, etc. It will always be used as the <samp>From</samp> and <samp>Reply-To</samp> address in emails.',
|
'CONTACT_EMAIL_EXPLAIN' => 'This address will be used whenever a specific contact point is needed, e.g. spam, error output, etc. It will always be used as the <samp>From</samp> and <samp>Reply-To</samp> address in emails.',
|
||||||
'CONTACT_EMAIL_NAME' => 'Contact name',
|
'CONTACT_EMAIL_NAME' => 'Contact name',
|
||||||
'CONTACT_EMAIL_NAME_EXPLAIN' => 'This is the contact name that e-mail recipients see. Leave blank to just send the e-mail address',
|
'CONTACT_EMAIL_NAME_EXPLAIN' => 'This is the contact name that e-mail recipients will see. If you don’t want to have a contact name, leave this field empty.',
|
||||||
'EMAIL_FUNCTION_NAME' => 'Email function name',
|
'EMAIL_FUNCTION_NAME' => 'Email function name',
|
||||||
'EMAIL_FUNCTION_NAME_EXPLAIN' => 'The email function used to send mails through PHP.',
|
'EMAIL_FUNCTION_NAME_EXPLAIN' => 'The email function used to send mails through PHP.',
|
||||||
'EMAIL_PACKAGE_SIZE' => 'Email package size',
|
'EMAIL_PACKAGE_SIZE' => 'Email package size',
|
||||||
|
|
Loading…
Add table
Reference in a new issue