X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-support.php;h=754a0321be705d8da11b3eec50ff05b0362c603f;hb=6e008d188bf9c7f8d4edc2a8799c61940eee48e7;hp=f48d6a97fd17dc89ba2fd356f7b24973031a7db4;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git diff --git a/inc/modules/member/what-support.php b/inc/modules/member/what-support.php index f48d6a97fd..754a0321be 100644 --- a/inc/modules/member/what-support.php +++ b/inc/modules/member/what-support.php @@ -38,24 +38,24 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif (!IS_MEMBER()){ - LOAD_URL("modules.php?module=index"); -} elseif ((!EXT_IS_ACTIVE("support")) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "support"); + LOAD_URL('modules.php?module=index'); +} elseif ((!EXT_IS_ACTIVE('support')) && (!IS_ADMIN())) { + addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'support'); return; } // Add description as navigation point -ADD_DESCR("member", __FILE__); +ADD_DESCR('member', __FILE__); if ((!IS_FORM_SENT()) || (!REQUEST_ISSET_POST(('qsummary')))) { // Output form LOAD_TEMPLATE("member_support_form"); } else { // Load mail template based on your member's decision - if (GET_EXT_VERSION("admins") >= "0.4.1") { + if (GET_EXT_VERSION('admins') >= '0.4.1') { $a_tpl = "admin_support-".REQUEST_POST('qsummary'); } else { $msg_a = LOAD_EMAIL_TEMPLATE("admin_support-".REQUEST_POST('qsummary'), array('text' => REQUEST_POST('qdetails')), getUserId());