]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-support.php
Fix for fix... :(
[mailer.git] / inc / modules / member / what-support.php
index a2cfff4929bbb88a4c30998cbca5ca0dd6be5d56..71f468964e7f7e24a96dbdbe0d4b2d6d6cc74766 100644 (file)
@@ -53,15 +53,15 @@ if ((!isExtensionActive('support')) && (!isAdmin())) {
 
 if ((!isFormSent()) || (!isPostRequestElementSet(('qsummary')))) {
        // Output form
-       loadTemplate('member_support_form');
+       loadTemplate('member_support_form', false, getUserDataArray());
 } else {
        // Load mail template based on your member's decision
        if (getExtensionVersion('admins') >= '0.4.1') {
                $a_tpl = 'admin_support-' . postRequestElement('qsummary');
        } else {
-               $message_a = loadEmailTemplate('admin_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getUserId());
+               $message_a = loadEmailTemplate('admin_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
        }
-       $message_m = loadEmailTemplate('member_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getUserId());
+       $message_m = loadEmailTemplate('member_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
 
        // Select right subject
        switch (postRequestElement('qsummary')) {
@@ -82,13 +82,13 @@ if ((!isFormSent()) || (!isPostRequestElementSet(('qsummary')))) {
        } // END - switch
 
        // Send mail to admin
-       sendAdminNotification($subj_a, $a_tpl, array('text' => postRequestElement('qdetails')), getUserId());
+       sendAdminNotification($subj_a, $a_tpl, array('text' => postRequestElement('qdetails')), getMemberId());
 
        // Send mail to user
-       sendEmail(getUserId(), $subj_m, $message_m);
+       sendEmail(getMemberId(), $subj_m, $message_m);
 
        // Drop a message in the admin's area
-       createNewTask($subj_a, postRequestElement('qsummary') . ' : ' . postRequestElement('qdetails'), 'SUPPORT_MEMBER', getUserId());
+       createNewTask($subj_a, postRequestElement('qsummary') . ' : ' . postRequestElement('qdetails'), 'SUPPORT_MEMBER', getMemberId());
 
        // Form sent
        loadTemplate('member_support_contcted');