New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / member / action-
index 5365e3cacd9c3adc52b3d9ae96cf69f99b46a056..1baf1ad3cc1f06f6117ae00ee34f3fc2b520f958 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } elseif (!IS_LOGGED_IN()) {
-       LOAD_URL(URL."/modules.php?module=index");
+       redirectToUrl(URL."/modules.php?module=index");
 } elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) {
        addFatalMessage(__FILE__, __LINE__, EXTENSION_PROBLEM_EXT_INACTIVE, "");
        return;
@@ -55,9 +55,9 @@ ADD_DESCR('member', __FILE__);
 
 // Load the include file
 $INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (isIncludeReadable($INC)) {
        // Ok, we finally load the member action module
-       LOAD_INC($INC);
+       loadInclude($INC);
 } else {
        addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('MEMBER_404_ACTION'), $GLOBALS['what']));
 }