X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-sponsor.php;h=08efab2a619be9dbd3e3164e766c7f7698d42446;hp=a0b1fcae651a2fd34af9755014384df2b8b6845b;hb=102d8ff4dc03d13ba12cc5181da83f48feb7a4d6;hpb=2f0357c7ac9da6c17d361b8e7cb0b1ad09eb85f6 diff --git a/inc/modules/guest/action-sponsor.php b/inc/modules/guest/action-sponsor.php index a0b1fcae65..08efab2a61 100644 --- a/inc/modules/guest/action-sponsor.php +++ b/inc/modules/guest/action-sponsor.php @@ -40,9 +40,9 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif ((!EXT_IS_ACTIVE('sponsor')) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'sponsor')); + 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'])); -if (INCLUDE_READABLE($INC)) { +$INC = sprintf("inc/modules/guest/what-%s.php", getWhat()); +if (isIncludeReadable($INC)) { // Ok, we finally load the guest action module - LOAD_INC($INC); + loadInclude($INC); } else { - addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), $GLOBALS['what']); + addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), getWhat()); } //