X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_contct.php;h=a84cdcdd4c780f723dd11ddd6f7f2399ccbc1159;hb=80769d81cc67b9213ea436e07365982fb3e7600d;hp=1674350b7ebf57e5368f33661cc5c641e5ff13cf;hpb=e3b1f1d690cd2c024bc8398b70724d0409c90e34;p=mailer.git diff --git a/inc/modules/admin/what-admins_contct.php b/inc/modules/admin/what-admins_contct.php index 1674350b7e..a84cdcdd4c 100644 --- a/inc/modules/admin/what-admins_contct.php +++ b/inc/modules/admin/what-admins_contct.php @@ -45,18 +45,12 @@ addYouAreHereLink('admin', __FILE__); if ((isFormSent()) && (isGetRequestParameterSet('admin'))) { // Send mail or message - if ((isExtensionActive('msg')) && (postRequestParameter('type') == 'message')) { - // Add message - $message = loadEmailTemplate('admins_msg_contct_admin', postRequestParameter('text'), 0); - sendAdminMessage(getRequestParameter('admin'), '{--ADMIN_ADMINS_MESSAGE_FROM_ADMIN--}', $message); - } else { - // Load admin's email address - $email = getAdminEmail(bigintval(getRequestParameter('admin'))); + // Load admin's email address + $email = getAdminEmail(bigintval(getRequestParameter('admin'))); - // Load email template and send the mail to the admin - $message = loadEmailTemplate('admins_mail_contct_admin', postRequestParameter('text'), 0); - sendEmail($email, '{--ADMIN_ADMINS_MESSAGE_FROM_ADMIN--}', $message); - } + // Load email template and send the mail to the admin + $message = loadEmailTemplate('admins_mail_contct_admin', postRequestParameter('text'), 0); + sendEmail($email, '{--ADMIN_ADMINS_MESSAGE_FROM_ADMIN--}', $message); // Mail / message dropped displayMessage('{--ADMIN_ADMINS_ADMIN_CONTACTED--}'); @@ -64,14 +58,6 @@ if ((isFormSent()) && (isGetRequestParameterSet('admin'))) { // Load contact form template $content['admin'] = getRequestParameter('admin'); - if (isExtensionActive('msg')) { - // Add option to select between mail and message - $content['message_selection'] = loadTemplate('admin_admins_contct_select', true); - } else { - // Outout hidden input - $content['message_selection'] = loadTemplate('admin_admins_contct_default', true); - } - // Load main form loadTemplate('admin_admins_contct_form', false, $content); } else {