X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=birthday_confirm.php;h=2923ceb2c9aaafe9e1f63f0e9cdb6039c0c0835f;hp=f95f1f144b2fd9dfad305ae48e0dc2f730d6e30d;hb=9ad55a40b49ea7dc484b1553039715fbce8086f0;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2 diff --git a/birthday_confirm.php b/birthday_confirm.php index f95f1f144b..2923ceb2c9 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -90,9 +90,8 @@ 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']); - addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, strtolower(getConfig('birthday_mode'))); + initReferalSystem(); + addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points']); // Remove entry from table SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1", @@ -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!