X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fmember%2Faction-extras.php;h=6aae2a04974f6b5d0914c817ef80dff5899a191a;hb=039312ca6ac674e45b94ed9659499bc69efb4e5b;hp=dfcacbc7f871abf1a41dddb854da98a3b09af94b;hpb=b73c135350d7ed266c0cac680105707139bd892d;p=mailer.git diff --git a/inc/modules/member/action-extras.php b/inc/modules/member/action-extras.php index dfcacbc7f8..6aae2a0497 100644 --- a/inc/modules/member/action-extras.php +++ b/inc/modules/member/action-extras.php @@ -43,15 +43,15 @@ if (!defined('__SECURITY')) { } // Add description as navigation point -ADD_DESCR("member", basename(__FILE__)); +ADD_DESCR("member", __FILE__); // Load the include file -$INC_WHAT = sprintf("%sinc/modules/member/what-%s.php", PATH, $GLOBALS['what']); -if (FILE_READABLE($INC_WHAT)) { +$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); +if (FILE_READABLE($INC)) { // Ok, we finally load the member action module - include_once($INC_WHAT); + LOAD_INC($INC); } else { - ADD_FATAL(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2); + addFatalMessage(MEMBER_404_ACTION_1.$GLOBALS['what'].MEMBER_404_ACTION_2); } //