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

@@ -2814,11 +2814,20 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
break;
case LOGIN_ERROR_PASSWORD_CONVERT:
if ($config['contact_admin_form_enable'])
{
$contact_link = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword');
}
else
{
$contact_link = 'mailto:' . htmlspecialchars($config['board_contact']);
}
$err = sprintf(
$user->lang[$result['error_msg']],
($config['email_enable']) ? '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') . '">' : '',
($config['email_enable']) ? '</a>' : '',
'<a href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contactadmin') . '">',
'<a href="' . $contact_link . '">',
'</a>'
);
break;