]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
DEBUG_MODE is N now by default
[mailer.git] / inc / wrapper-functions.php
index 2a953014d64becc8dccbed06609899054dcaa086..ffd748ab413feec03d9b2724367adb74e0c392ae 100644 (file)
@@ -1562,7 +1562,7 @@ function getSiteKey () {
 }
 
 // "Getter" for DATE_KEY
-function getDayKey () {
+function getDateKey () {
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
@@ -2281,18 +2281,6 @@ function getProfileLock () {
        return $GLOBALS[__FUNCTION__];
 }
 
-// "Getter" for online_timeout
-function getOnlineTimeout () {
-       // Do we have cache?
-       if (!isset($GLOBALS[__FUNCTION__])) {
-               // Determine it
-               $GLOBALS[__FUNCTION__] = getConfig('online_timeout');
-       } // END - if
-
-       // Return cache
-       return $GLOBALS[__FUNCTION__];
-}
-
 // "Getter" for url_tlock
 function getUrlTlock () {
        // Do we have cache?
@@ -2442,6 +2430,12 @@ function changeDataInInclude ($FQFN, $comment, $prefix, $suffix, $DATA, $seek=0)
        return changeDataInFile($FQFN, $comment, $prefix, $suffix, $DATA, $seek);
 }
 
+// Wrapper for changing entries in config-local.php
+function changeDataInLocalConfigurationFile ($comment, $prefix, $suffix, $DATA, $seek = 0) {
+       // Call the inner function
+       return changeDataInInclude(getCachePath() . 'config-local.php', $comment, $prefix, $suffix, $DATA, $seek);
+}
+
 // Shortens ucfirst(strtolower()) calls
 function firstCharUpperCase ($str) {
        return ucfirst(strtolower($str));