1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/10073] Deduplicate the if statement

PHPBB3-10073
This commit is contained in:
Joas Schilling
2014-05-03 16:57:04 +02:00
parent ed8c16bf0d
commit f01e0a2eef
7 changed files with 46 additions and 64 deletions

View File

@@ -392,17 +392,8 @@ switch ($mode)
$messenger->replyto($user->data['user_email']);
$messenger->set_addresses($row);
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(
'BOARD_CONTACT' => $contact_link,
'BOARD_CONTACT' => phpbb_get_board_contact($config, $phpEx),
'FROM_USERNAME' => htmlspecialchars_decode($user->data['username']),
'TO_USERNAME' => htmlspecialchars_decode($row['username']),
'MESSAGE' => htmlspecialchars_decode($message))