// 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]