// Getter for profile_update
function getProfileUpdate () {
// Do we have cache?
- if (!isset($GLOBALS['profile_update'])) {
+ if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS['profile_update'] = getConfig('profile_update');
+ $GLOBALS[__FUNCTION__] = getConfig('profile_update');
} // END - if
// Return cache
- return $GLOBALS['profile_update'];
+ return $GLOBALS[__FUNCTION__];
}
// Getter for resend_profile_update
function getResendProfileUpdate () {
// Do we have cache?
- if (!isset($GLOBALS['resend_profile_update'])) {
+ if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS['resend_profile_update'] = getConfig('resend_profile_update');
+ $GLOBALS[__FUNCTION__] = getConfig('resend_profile_update');
} // END - if
// Return cache
- return $GLOBALS['resend_profile_update'];
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Determines wether sending profile update notification is enabled
+function isSendProfileUpdateEnabled() {
+ // Do we have cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
}
// [EOF]