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'))) {
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