]> git.mxchange.org Git - mailer.git/blobdiff - birthday_confirm.php
Fixes for referal system, shell scripts overworked:
[mailer.git] / birthday_confirm.php
index f95f1f144b2fd9dfad305ae48e0dc2f730d6e30d..24f71259c4b978e0badad49c0326e73286c5a25c 100644 (file)
@@ -90,8 +90,7 @@ if (SQL_NUMROWS($result) == 1) {
        // Is the account confirmed?
        if ($data['status'] == 'CONFIRMED') {
                // Add points to account
-               // @TODO Try to rewrite the following unset()
-               unset($GLOBALS['ref_level']);
+               initReferalSystem();
                addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, strtolower(getConfig('birthday_mode')));
 
                // Remove entry from table
@@ -102,7 +101,7 @@ if (SQL_NUMROWS($result) == 1) {
                $content['message'] = loadTemplate('birthday_msg', true, $data);
        } else {
                // Unconfirmed / locked accounts cannot get points
-               $content['message'] = getMaskedMessage('MEMBER_BIRTHDAY_CANNOT_STATUS', translateUserStatus($data['status']));
+               $content['message'] = '{%message,MEMBER_BIRTHDAY_CANNOT_STATUS=' . $data['status'] . '%}';
        }
 } else {
        // Cannot load data!