mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-02 22:02:07 +02:00
[ticket/8558] Use only one variable and improve explain string
PHPBB3-8558
This commit is contained in:
parent
809054abfd
commit
59cdc26fb4
@ -484,28 +484,16 @@ class messenger
|
||||
$use_queue = true;
|
||||
}
|
||||
|
||||
$board_contact = (($config['board_contact_name']) ? '"' . mail_encode($config['board_contact_name']) . '" ' : '') . '<' . $config['board_contact'] . '>';
|
||||
|
||||
if (empty($this->replyto))
|
||||
{
|
||||
if ($config['board_contact_name'])
|
||||
{
|
||||
$this->replyto = '"' . mail_encode($config['board_contact_name']) . '" <' . $config['board_contact'] . '>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->replyto = '<' . $config['board_contact'] . '>';
|
||||
}
|
||||
$this->replyto = $board_contact;
|
||||
}
|
||||
|
||||
if (empty($this->from))
|
||||
{
|
||||
if ($config['board_contact_name'])
|
||||
{
|
||||
$this->from = '"' . mail_encode($config['board_contact_name']) . '" <' . $config['board_contact'] . '>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->from = '<' . $config['board_contact'] . '>';
|
||||
}
|
||||
$this->from = $board_contact;
|
||||
}
|
||||
|
||||
$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_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_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_EXPLAIN' => 'The email function used to send mails through PHP.',
|
||||
'EMAIL_PACKAGE_SIZE' => 'Email package size',
|
||||
|
Loading…
x
Reference in New Issue
Block a user