Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / monthly / monthly_beg.php
index 56a93a07860904f87f75e3cc98446efa602d0d46..5372ce06be98fb5841bca64d1c0bd6728d64937a 100644 (file)
@@ -83,7 +83,7 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__);
                // Load our winners...
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Add points to user's account directly
-                       addPointsDirectly('monthly_beg', $content['userid'], $content['beg_points']);
+                       addPointsThroughReferalSystem('monthly_beg', $content['userid'], $content['beg_points']);
 
                        // Load email template and email it away
                        $message = loadEmailTemplate('member_beg', $content, bigintval($content['userid']));