X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Faction-logout.php;h=186f716c5160a21011e501fa2b8158afe8e70052;hb=d32a5a6c4e9287611853e7187a5d6d1b05794bdb;hp=74945d10ee16cd1b6996a266dcb1c269412dd5d0;hpb=3daede4c904e23905c3e48dd6749019deca0a0e0;p=mailer.git diff --git a/inc/modules/member/action-logout.php b/inc/modules/member/action-logout.php index 74945d10ee..186f716c51 100644 --- a/inc/modules/member/action-logout.php +++ b/inc/modules/member/action-logout.php @@ -37,7 +37,7 @@ if (!defined('__SECURITY')) { require($INC); } elseif (!IS_MEMBER()) { LOAD_URL("modules.php?module=index"); -} elseif ($BLOCK_MODE) { +} elseif ($GLOBALS['block_mode']) { // Block mode detected return; } @@ -46,12 +46,12 @@ if (!defined('__SECURITY')) { ADD_DESCR("member", __FILE__); // Load the include file -$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what'])); -if (FILE_READABLE($INC_WHAT)) { +$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); +if (INCLUDE_READABLE($INC)) { // Ok, we finally load the member action module - include_once($INC_WHAT); + LOAD_INC($INC); } else { - addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2); + addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), $GLOBALS['what'])); } //