Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / mailid_top.php
index 68aff4de92948c583697f3f60ea894872cdd6b20..3afc87b5110f60766ebba0b72382a96cb98321db 100644 (file)
@@ -296,7 +296,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                                                loadTemplate($template, false, $content);
                                                                        } elseif (isValidUserId($sender)) {
                                                                                // Wrong image code! So add points to sender's account
-                                                                               addPointsDirectly('mailid_payback', $sender, $payment);
+                                                                               addPointsThroughReferalSystem('mailid_payback', $sender, $payment);
 
                                                                                // Load template
                                                                                loadTemplate('mailid_points_failed', false, $content);