1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +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

@@ -149,16 +149,7 @@ abstract class form
$this->message->cc_sender();
}
if ($this->config['contact_admin_form_enable'])
{
$board_contact = generate_board_url() . '/memberlist.' . $this->phpEx . '?mode=contactadmin';
}
else
{
$board_contact = $this->config['board_contact'];
}
$this->message->send($messenger, $board_contact);
$this->message->send($messenger, phpbb_get_board_contact($this->config, $this->phpEx));
meta_refresh(3, append_sid($this->phpbb_root_path . 'index.' . $this->phpEx));
trigger_error($this->user->lang['EMAIL_SENT'] . '<br /><br />' . $this->get_return_message());