X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fbonus_functions.php;h=7bbf24eee983e811db0bffb3a7823024e3065260;hb=305141b6b5b656e0fb10505e5ae66fdc0ce2e391;hp=bd3948445860d43f39270df080dfdb1f82804aee;hpb=1410e014d23f244e73d3a7916a61c2473416bab9;p=mailer.git diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index bd39484458..7bbf24eee9 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -203,7 +203,7 @@ LIMIT 1", // @TODO Move this HTML to a template $OUT = ' -
' . getMaskedMessage('MEMBER_BONUS_NO_RANKS', $data) . '
+
{%message,MEMBER_BONUS_NO_RANKS=' . $data . '%}
'; } @@ -218,7 +218,7 @@ function handleBonusPoints ($mode) { if (!isBonusRallyeActive()) return; // Switch to jackpot-mode when no UID is supplied but userid-mode is selected - if ((getBonusMode() == 'UID') && (getBonusUserId() == '0') && (isExtensionActive('jackpot'))) { + if ((getBonusMode() == 'UID') && (getBonusUserid() == '0') && (isExtensionActive('jackpot'))) { // Update database & config updateConfiguration('bonus_mode', 'JACKPOT'); } // END - if @@ -232,7 +232,7 @@ function handleBonusPoints ($mode) { } // Check his amount first - $total = getTotalPoints(getBonusUserId()); + $total = getTotalPoints(getBonusUserid()); // Subtract points from... switch (getBonusMode()) { @@ -241,10 +241,10 @@ function handleBonusPoints ($mode) { break; case 'JACKPOT': // ... jackpot - if ((isExtensionActive('jackpot')) && (subtractPointsFromJackpot($points) == -1) && (isValidUserId(getBonusUserId()))) { + if ((isExtensionActive('jackpot')) && (subtractPointsFromJackpot($points) == -1) && (isValidUserId(getBonusUserid()))) { if ($total >= $points) { // Subtract points from userid's account - subtractPointsFromJackpot('bonus_payout_jackpot', getBonusUserId(), $points); + subtractPointsFromJackpot('bonus_payout_jackpot', getBonusUserid(), $points); } // END - if } // END - if break; @@ -252,7 +252,7 @@ function handleBonusPoints ($mode) { case 'UID': // ... userid's account if ($total >= $points) { // Subtract points from userid's account - subtractPoints('bonus_payout_userid', getBonusUserId(), $points); + subtractPoints('bonus_payout_userid', getBonusUserid(), $points); } elseif (isExtensionActive('jackpot')) { // Try to subtract from jackpot $dummy = subtractPointsFromJackpot($points);