]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/action-surfbar.php
New wrapper functions enableBlockMode() and isBlockModeEnabled() introduced
[mailer.git] / inc / modules / member / action-surfbar.php
index 24945ce4f02ecb63860cb2338686705600d0e5a5..4470b082fcda984155777147ebb120860ead5563 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 } elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
        addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
        return;
-} elseif ($GLOBALS['block_mode']) {
+} elseif (isBlockModeEnabled()) {
        // Block mode detected
        return;
 }
@@ -54,12 +54,12 @@ if (!defined('__SECURITY')) {
 ADD_DESCR('member', __FILE__);
 
 // Load the include file
-$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
+$INC = sprintf("inc/modules/member/what-%s.php", getWhat());
 if (isIncludeReadable($INC)) {
        // Ok, we finally load the member action module
        loadInclude($INC);
 } else {
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), $GLOBALS['what']));
+       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), getWhat()));
 }
 
 //