]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/refback_functions.php
Naming convention applied, wrapper functions may use __FUNCTION__ as first index
[mailer.git] / inc / libs / refback_functions.php
index 844bc83f102e9d7a362bf07d96c2cad3b6b4186f..7ece79ea7d93eaea20c1ad34cd1ba0cf8c1c134c 100644 (file)
@@ -417,5 +417,17 @@ function updateMemberRefbackPercents ($id, $percents) {
        return $status;
 }
 
+// Checks wether refback is enabled
+function isRefbackEnabled () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getConfig('refback_enabled') == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>