]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-rallyes.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / member / what-rallyes.php
index 67fb92f25f8f50353cd43a45522824e3cdd14269..dbc3bce2b48210c2e5009699afb678ec7732df43 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_MEMBER()) {
-       LOAD_URL('modules.php?module=index');
+       redirectToUrl('modules.php?module=index');
 } elseif ((!EXT_IS_ACTIVE('rallye')) && (!IS_ADMIN())) {
        addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'rallye'));
        return;
@@ -97,8 +97,8 @@ if (SQL_NUMROWS($result) == 1) {
        define('__RALLYE_MAX_PRICES',  RALLYE_DETERMINE_MIN_PRICES($min_prices));
 
        // Set start and end time
-       define('__RALLYE_START', MAKE_DATETIME($start, "1"));
-       define('__RALLYE_END'  , MAKE_DATETIME($end  , "1"));
+       define('__RALLYE_START', generateDateTime($start, "1"));
+       define('__RALLYE_END'  , generateDateTime($end  , "1"));
 
        if ($expired === true) {
                define('__RALLYE_PRICES', RALLYE_LIST_WINNERS($id));