aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_email.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-03 16:57:04 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-29 02:14:40 +0200
commitf01e0a2eef0604367620e8b9aa323f3feb86ea3c (patch)
treee2dcd7c7f72e0bc80f809d46ae3a6d25278c3508 /phpBB/includes/acp/acp_email.php
parented8c16bf0ddb8fc8723aa870607f255d80aab55b (diff)
downloadforums-f01e0a2eef0604367620e8b9aa323f3feb86ea3c.tar
forums-f01e0a2eef0604367620e8b9aa323f3feb86ea3c.tar.gz
forums-f01e0a2eef0604367620e8b9aa323f3feb86ea3c.tar.bz2
forums-f01e0a2eef0604367620e8b9aa323f3feb86ea3c.tar.xz
forums-f01e0a2eef0604367620e8b9aa323f3feb86ea3c.zip
[ticket/10073] Deduplicate the if statement
PHPBB3-10073
Diffstat (limited to 'phpBB/includes/acp/acp_email.php')
-rw-r--r--phpBB/includes/acp/acp_email.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/phpBB/includes/acp/acp_email.php b/phpBB/includes/acp/acp_email.php
index 4402b6bcf0..fe55b36e67 100644
--- a/phpBB/includes/acp/acp_email.php
+++ b/phpBB/includes/acp/acp_email.php
@@ -200,17 +200,8 @@ 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' => $contact_link,
+ 'CONTACT_EMAIL' => phpbb_get_board_contact($config, $phpEx),
'MESSAGE' => htmlspecialchars_decode($message))
);