X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Faction-admin.php;h=038bf7cc91875671f489edb0363a6754ec36e918;hp=7da2d0635584a34628171672473ccd76055b99f8;hb=1e8b13eed299bc1fce44f44e01361de6d025092a;hpb=08b3c51b70b6498fd92a2760979d64470ad1b586 diff --git a/inc/modules/guest/action-admin.php b/inc/modules/guest/action-admin.php index 7da2d06355..038bf7cc91 100644 --- a/inc/modules/guest/action-admin.php +++ b/inc/modules/guest/action-admin.php @@ -35,18 +35,18 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ($BLOCK_MODE) { +} elseif ($GLOBALS['block_mode']) { // Block mode detected return; } // Only when one admin link is clicked... $INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); -if (FILE_READABLE($INC)) { +if (INCLUDE_READABLE($INC)) { // Ok, we finally load the guest action module LOAD_INC($INC); } else { - addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what']))); + addFatalMessage(__FILE__, __LINE__, getMessage('GUEST_404_ACTION'), $GLOBALS['what']); } //