]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/doubler_functions.php
Introduced more wrappers
[mailer.git] / inc / libs / doubler_functions.php
index 4d8b7cf5c81cc842d7e99d216ef575b70c7354a2..fc13a2f44c16d3c023b673253c39cae3ab6f7246 100644 (file)
@@ -133,7 +133,7 @@ function getDoublerTotalPointsLeft() {
 
        if (getConfig('doubler_own') == 'Y') {
                // Take points from doubler's own account
-               $points += getConfig('doubler_points') - getConfig('doubler_used');
+               $points += getDoublerPoints() - getConfig('doubler_used');
        } // END - if
 
        if ((getConfig('doubler_jackpot') == 'Y') && (isExtensionActive('jackpot'))) {
@@ -143,9 +143,9 @@ function getDoublerTotalPointsLeft() {
                if (!empty($jackpot)) $points += $jackpot;
        } // END - if
 
-       if (isValidUserId(getConfig('doubler_userid'))) {
+       if (isValidUserId(getDoublerUserid())) {
                // Get user's points
-               $user = getTotalPoints(getConfig('doubler_userid'));
+               $user = getTotalPoints(getDoublerUserid());
                $points += $user;
        } // END - if