]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Naming convention, internal TODOs solved:
[mailer.git] / inc / mysql-manager.php
index 283fd4b02dbfea93eb5e6c12d6491b882cdb0d75..105ea2961e1dfe60f2d2343543ce86cb5281c923 100644 (file)
@@ -989,12 +989,12 @@ function getReferalLevelPercents ($level) {
  * userid         = Referal id wich should receive...
  * points      = ... xxx points
  * sendNotify  = shall I send the referal an email or not?
- * rid         = inc/modules/guest/what-confirm.php need this
+ * refid       = inc/modules/guest/what-confirm.php need this
  * locked      = Shall I pay it to normal (false) or locked (true) points ammount?
  * add_mode    = Add points only to $userid or also refs? (WARNING! Changing 'ref' to 'direct'
  *               for default value will cause no referal will get points ever!!!)
  */
-function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $rid = '0', $locked = false, $add_mode = 'ref') {
+function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $refid = '0', $locked = false, $add_mode = 'ref') {
        //* DEBUG: */ debugOutput('----------------------- <font color="#00aa00">' . __FUNCTION__ . ' - ENTRY</font> ------------------------<ul><li>');
        // Convert mode to lower-case
        $add_mode = strtolower($add_mode);
@@ -1012,7 +1012,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
                'userid'   => $userid,
                'points'   => $points,
                'notify'   => $sendNotify,
-               'rid'      => $rid,
+               'refid'    => $refid,
                'locked'   => $locked,
                'mode'     => 'add',
                'sub_mode' => $add_mode,
@@ -1161,6 +1161,7 @@ function updateReferalCounter ($userid) {
        $GLOBALS['cache_array']['ref_level'][$userid]--;
 
        // Handle refback here if extension is installed
+       // @TODO Rewrite this to a filter
        if (isExtensionActive('refback')) {
                updateRefbackTable($userid);
        } // END - if