X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-sponsor.php;h=08efab2a619be9dbd3e3164e766c7f7698d42446;hp=b53694dd7ac276e3ca4f1c4364d45f4fe8a8d863;hb=102d8ff4dc03d13ba12cc5181da83f48feb7a4d6;hpb=1e2a4228e071a67a2d79e970a843e3e30476cfb8 diff --git a/inc/modules/guest/action-sponsor.php b/inc/modules/guest/action-sponsor.php index b53694dd7a..08efab2a61 100644 --- a/inc/modules/guest/action-sponsor.php +++ b/inc/modules/guest/action-sponsor.php @@ -42,7 +42,7 @@ if (!defined('__SECURITY')) { } elseif ((!EXT_IS_ACTIVE('sponsor')) && (!IS_ADMIN())) { addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor')); return; -} elseif ($GLOBALS['block_mode']) { +} elseif (isBlockModeEnabled()) { // Block mode detected return; } @@ -51,12 +51,12 @@ if (!defined('__SECURITY')) { ADD_DESCR('guest', __FILE__); // Load the include file -$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); +$INC = sprintf("inc/modules/guest/what-%s.php", getWhat()); if (isIncludeReadable($INC)) { // Ok, we finally load the guest action module loadInclude($INC); } else { - addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), $GLOBALS['what']); + addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), getWhat()); } //