New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / libs / autopurge_functions.php
index c9e5a66ecd364acc980e599c753bb6bdaff84656..b0c8a2e38a258cbb452659f4cacc60d8979dfbe2 100644 (file)
@@ -52,7 +52,7 @@ function AUTOPURGE_ADD_POINTS($uid, $points) {
        if (($payout > 0) && (!empty($payout))) {
                // Yes, he has.
                $target = "locked_points";
-       } elseif ($payout == "0") {
+       } elseif ($payout == '0') {
                // No, he has not
                $target = "points";
        }
@@ -75,8 +75,8 @@ function AUTOPURGE_ADD_POINTS($uid, $points) {
                }
 
                // Send out mail to user
-               $msg = LOAD_EMAIL_TEMPLATE("member_autopurge_points", TRANSLATE_COMMA($points), $uid);
-               SEND_EMAIL($uid, AUTOPURGE_MEMBER_SUBJECT, $msg);
+               $msg = LOAD_EMAIL_TEMPLATE("member_autopurge_points", translateComma($points), $uid);
+               sendEmail($uid, getMessage('AUTOPURGE_MEMBER_SUBJECT'), $msg);
        }
 }