]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-support.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / modules / member / what-support.php
index b946503bfbe98660e659b4dff158e848fad572f9..8e864c3193d1f26d5e3862302b08820daf3ed99e 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 }  elseif (!isMember()) {
        redirectToIndexMemberOnlyModule();
 }
@@ -56,11 +56,11 @@ if ((!isFormSent()) || (!isPostRequestElementSet('qsummary'))) {
 } else {
        // Load mail template based on your member's decision
        if (isExtensionInstalledAndNewer('admins', '0.4.1')) {
-               $a_tpl = 'admin_support-' . postRequestElement('qsummary');
+               $a_tpl = 'admin_support_' . postRequestElement('qsummary');
        } else {
-               $message_a = loadEmailTemplate('admin_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
+               $message_a = loadEmailTemplate('admin_support_' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
        }
-       $message_m = loadEmailTemplate('member_support-' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
+       $message_m = loadEmailTemplate('member_support_' . postRequestElement('qsummary'), array('text' => postRequestElement('qdetails')), getMemberId());
 
        // Select right subject
        switch (postRequestElement('qsummary')) {
@@ -70,8 +70,8 @@ if ((!isFormSent()) || (!isPostRequestElementSet('qsummary'))) {
                        break;
 
                case 'reflink':
-                       $subj_a = '{--ADMIN_SUPPORT_REFERAL_LINK_SUBJECT--}';
-                       $subj_m = '{--MEMBER_SUPPORT_REFERAL_LINK_SUBJECT--}';
+                       $subj_a = '{--ADMIN_SUPPORT_REFERRAL_LINK_SUBJECT--}';
+                       $subj_m = '{--MEMBER_SUPPORT_REFERRAL_LINK_SUBJECT--}';
                        break;
 
                case 'unconfirmed':