Naming inconsistencies for userid fixed
[mailer.git] / inc / modules / member / what-support.php
index b6c9d742c6b53cb85abc84bf188e517538b5aabd..71f468964e7f7e24a96dbdbe0d4b2d6d6cc74766 100644 (file)
@@ -59,9 +59,9 @@ if ((!isFormSent()) || (!isPostRequestElementSet(('qsummary')))) {
        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');