'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / modules / member / action-extras.php
index aa719fd1c5174c673373995aad33b181e191f7f2..80760aee9b29e2734bff31bc8bc4202ac7ce5d97 100644 (file)
@@ -51,12 +51,12 @@ if (!defined('__SECURITY')) {
 ADD_DESCR('member', __FILE__);
 
 // Load the include file
-$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
+$INC = sprintf("inc/modules/member/what-%s.php", getWhat());
 if (isIncludeReadable($INC)) {
        // Ok, we finally load the member action module
        loadInclude($INC);
 } else {
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), $GLOBALS['what']));
+       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), getWhat()));
 }
 
 //