]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / monthly / monthly_bonus.php
index 037b2a949c7f0a5f65f2b467d4648f7fe9f88086..ff5981a30adfb9d5940d9be85f6ceac7d7055541 100644 (file)
@@ -91,7 +91,7 @@ LIMIT {?bonus_ranks?}', __FILE__, __LINE__);
                        // Make sure zero points are not mailed
                        if ($content['points'] > 0) {
                                // Add points to user's account directly
-                               addPointsDirectly('monthly_bonus', $content['userid'], $content['points']);
+                               addPointsThroughReferalSystem('monthly_bonus', $content['userid'], $content['points']);
 
                                // Load email template and email it away
                                $message = loadEmailTemplate('member_bonus', $content, bigintval($content['userid']));