aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_email.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_email.php')
-rw-r--r--phpBB/includes/acp/acp_email.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_email.php b/phpBB/includes/acp/acp_email.php
index 44489b90fe..4402b6bcf0 100644
--- a/phpBB/includes/acp/acp_email.php
+++ b/phpBB/includes/acp/acp_email.php
@@ -200,8 +200,17 @@ class acp_email
$messenger->subject(htmlspecialchars_decode($subject));
$messenger->set_mail_priority($priority);
+ 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(
- 'CONTACT_EMAIL' => generate_board_url() . '/memberlist.' . $phpEx . '?mode=contactadmin',
+ 'CONTACT_EMAIL' => $contact_link,
'MESSAGE' => htmlspecialchars_decode($message))
);