aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-06-07 03:46:38 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-29 02:14:28 +0200
commit389bc0b8dd5594a9f66c1026df408dfe73eb65b0 (patch)
tree5bf933be6fc4d6455a60005a7e1070b7e1b19979 /phpBB/includes/functions.php
parentd52f34f5ec5d006ec7e610e1c72266df21e70ac7 (diff)
downloadforums-389bc0b8dd5594a9f66c1026df408dfe73eb65b0.tar
forums-389bc0b8dd5594a9f66c1026df408dfe73eb65b0.tar.gz
forums-389bc0b8dd5594a9f66c1026df408dfe73eb65b0.tar.bz2
forums-389bc0b8dd5594a9f66c1026df408dfe73eb65b0.tar.xz
forums-389bc0b8dd5594a9f66c1026df408dfe73eb65b0.zip
[ticket/10073] Replace board_contact mail with links to contact page
Error pages still contain the email address. PHPBB3-10073
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 8ca966eb52..220f1ae21d 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2818,8 +2818,8 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
$user->lang[$result['error_msg']],
($config['email_enable']) ? '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') . '">' : '',
($config['email_enable']) ? '</a>' : '',
- ($config['board_contact']) ? '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">' : '',
- ($config['board_contact']) ? '</a>' : ''
+ '<a href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contactadmin') . '">',
+ '</a>'
);
break;
@@ -2830,7 +2830,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
// Assign admin contact to some error messages
if ($result['error_msg'] == 'LOGIN_ERROR_USERNAME' || $result['error_msg'] == 'LOGIN_ERROR_PASSWORD')
{
- $err = (!$config['board_contact']) ? sprintf($user->lang[$result['error_msg']], '', '') : sprintf($user->lang[$result['error_msg']], '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');
+ $err = sprintf($user->lang[$result['error_msg']], '<a href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contactadmin') . '">', '</a>');
}
break;