X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fbeg_functions.php;h=12941204e087ab21392c7207b88dd38cd7305bd6;hb=56931cd9321119dd37372bd16d6c552857e40066;hp=b3622839f1bbe93b30b84189018c7281b1bd16be;hpb=964a3b539e335f6d70e7779630fd3d25fd38398d;p=mailer.git diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index b3622839f1..12941204e0 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -52,9 +52,8 @@ function addPointsBeg ($userid, $points) { array($points, $userid), __FUNCTION__, __LINE__); } else { // Add points to account - // @TODO Try to rewrite the following unset() - unset($GLOBALS['ref_level']); - $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, getBegMode()); + initReferalSystem(); + $added = addPointsThroughReferalSystem('beg', $userid, $points); } // Subtract begged points from member account if the admin has selected one @@ -67,9 +66,9 @@ function addPointsBeg ($userid, $points) { return $added; } -// ---------------------------------------------------------------------------- +//----------------------------------------------------------------------------- // Wrapper functions for ext-beg -// ---------------------------------------------------------------------------- +//----------------------------------------------------------------------------- // "Getter" for beg_new_member_notify function getBegNewMemberNotify () { @@ -215,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?