]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/autopurge_functions.php
Language id renamed, some network query amounts added
[mailer.git] / inc / libs / autopurge_functions.php
index 270c7a9f90fb98be1589434d8cf62122ebb80539..d9097a11d0b98fcfeccd3dfe369193d42b5b4a83 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -49,7 +49,8 @@ function addPointsAutoPurge ($userid, $points) {
        } // END - if
 
        // Add points over the ref system directly now
-       addPointsDirectly('autopurge_add', $userid, $points);
+       initReferalSystem();
+       addPointsThroughReferalSystem('autopurge_add', $userid, $points);
 
        // Send out mail to user
        $message = loadEmailTemplate('member_autopurge_points', array('points' => $points), $userid);