mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10073] Deduplicate the if statement
PHPBB3-10073
This commit is contained in:
@@ -200,17 +200,8 @@ class acp_email
|
||||
$messenger->subject(htmlspecialchars_decode($subject));
|
||||
$messenger->set_mail_priority($priority);
|
||||
|
||||
if ($config['contact_admin_form_enable'])
|
||||
{
|
||||
$contact_link = generate_board_url() . '/memberlist.' . $phpEx . '?mode=contactadmin';
|
||||
}
|
||||
else
|
||||
{
|
||||
$contact_link = $config['board_contact'];
|
||||
}
|
||||
|
||||
$messenger->assign_vars(array(
|
||||
'CONTACT_EMAIL' => $contact_link,
|
||||
'CONTACT_EMAIL' => phpbb_get_board_contact($config, $phpEx),
|
||||
'MESSAGE' => htmlspecialchars_decode($message))
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user