]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Added separate debugging of 'hourly' reset
[mailer.git] / inc / wrapper-functions.php
index 25e188c4821130a314824b6fb4401dba595962b2..db7fa084b3a6a2394fd907b56f365cf5bdfa156b 100644 (file)
@@ -407,6 +407,18 @@ function isDebugModeEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether the debug hourly is enabled
+function isDebugHourlyEnabled () {
+       // Is cache set?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Simply check it
+               $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('DEBUG_HOURLY')) && (getConfig('DEBUG_HOURLY') == 'Y'));
+       } // END - if
+
+       // Return it
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Checks whether the debug reset is enabled
 function isDebugResetEnabled () {
        // Is cache set?