]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/beg_functions.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / libs / beg_functions.php
index 8035ccf27d1ed1f8bad22d111137e4f13bc5eb88..12941204e087ab21392c7207b88dd38cd7305bd6 100644 (file)
@@ -53,7 +53,7 @@ function addPointsBeg ($userid, $points) {
        } else {
                // Add points to account
                initReferalSystem();
-               $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, getBegMode());
+               $added = addPointsThroughReferalSystem('beg', $userid, $points);
        }
 
        // Subtract begged points from member account if the admin has selected one
@@ -214,18 +214,6 @@ function getBegPayMode () {
        return $GLOBALS[__FUNCTION__];
 }
 
-// "Getter" for beg_mode
-function getBegMode () {
-       // Do we have cache?
-       if (!isset($GLOBALS[__FUNCTION__])) {
-               // Determine it
-               $GLOBALS[__FUNCTION__] = getConfig('beg_mode');
-       } // END - if
-
-       // Return cache
-       return $GLOBALS[__FUNCTION__];
-}
-
 // "Getter" for beg_include_own
 function getBegIncludeOwn () {
        // Do we have cache?