Extension ext-earning introduced (unfinished), renamings:
[mailer.git] / inc / modules / admin / what-admins_contct.php
index a84cdcdd4c780f723dd11ddd6f7f2399ccbc1159..97a1c843dc4ee2e1092ee18b3ea56c04f434f11b 100644 (file)
@@ -43,20 +43,20 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if ((isFormSent()) && (isGetRequestParameterSet('admin'))) {
+if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
        // Send mail or message
        // Load admin's email address
-       $email = getAdminEmail(bigintval(getRequestParameter('admin')));
+       $email = getAdminEmail(bigintval(getRequestElement('admin')));
 
        // Load email template and send the mail to the admin
-       $message = loadEmailTemplate('admins_mail_contct_admin', postRequestParameter('text'), 0);
+       $message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), 0);
        sendEmail($email, '{--ADMIN_ADMINS_MESSAGE_FROM_ADMIN--}', $message);
 
        // Mail / message dropped
        displayMessage('{--ADMIN_ADMINS_ADMIN_CONTACTED--}');
-} elseif (isGetRequestParameterSet('admin')) {
+} elseif (isGetRequestElementSet('admin')) {
        // Load contact form template
-       $content['admin'] = getRequestParameter('admin');
+       $content['admin'] = getRequestElement('admin');
 
        // Load main form
        loadTemplate('admin_admins_contct_form', false, $content);