1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 03:34:04 +02:00

[ticket/10073] Fallback to board_contact when contact page is disabled

PHPBB3-10073
This commit is contained in:
Joas Schilling
2014-05-03 16:34:25 +02:00
parent d1fb8d3c9e
commit ed8c16bf0d
8 changed files with 69 additions and 9 deletions

View File

@@ -149,7 +149,16 @@ abstract class form
$this->message->cc_sender();
}
$this->message->send($messenger, $this->phpEx);
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);
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());