]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/beg_functions.php
Naming convention applied, wrapper functions may use __FUNCTION__ as first index
[mailer.git] / inc / libs / beg_functions.php
index cc648742f04b4ead6951694dcbd87cfecdccbcad..ac21a85221bc5ac0263f6abffa261476e88089b0 100644 (file)
@@ -66,37 +66,37 @@ function addPointsBeg ($userid, $points) {
 // Checks wether beg_rallye is enabled
 function isBegRallyeEnabled () {
        // Do we have cache?
-       if (!isset($GLOBALS['is_beg_rallye_enabled'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['is_beg_rallye_enabled'] = ((isExtensionInstalledAndNewer('beg', '0.2.8')) && (getConfig('beg_rallye') == 'Y'));
+               $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('beg', '0.2.8')) && (getConfig('beg_rallye') == 'Y'));
        } // END - if
 
        // Return cache
-       return $GLOBALS['is_beg_rallye_enabled'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // Checks wether beg_rallye is enabled
 function isBegNewMemberNotifyEnabled () {
        // Do we have cache?
-       if (!isset($GLOBALS['is_beg_new_member_notify_enabled'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['is_beg_new_member_notify_enabled'] = ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (getConfig('beg_new_member_notify') == 'Y'));
+               $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('beg', '0.2.7')) && (getConfig('beg_new_member_notify') == 'Y'));
        } // END - if
 
        // Return cache
-       return $GLOBALS['is_beg_new_member_notify_enabled'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // "Getter" for beg_userid
 function getBegUserid () {
        // Do we have cache?
-       if (!isset($GLOBALS['beg_userid'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Get it
-               $GLOBALS['beg_userid'] = getConfig('beg_userid');
+               $GLOBALS[__FUNCTION__] = getConfig(__FUNCTION__);
        } // END - if
 
        // Return cache
-       return $GLOBALS['beg_userid'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // [EOF]