From: Roland Häder Date: Thu, 4 Oct 2012 18:40:39 +0000 (+0000) Subject: Added more wrapper, commented out another noisy debug line X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=08a9a052ddd67568fa7bcc98c4300ce0cc6bfdc0;p=mailer.git Added more wrapper, commented out another noisy debug line --- diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index 5f5075a574..df2023fc3c 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -180,13 +180,17 @@ function adminsChangeAdminAccount ($postData, $element = '', $displayMessage = t foreach ($postData['login'] as $id => $login) { // Secure id number $id = bigintval($id); - /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',login=' . $login); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',login=' . $login); // When both passwords match update admin account if ((!empty($element)) && (isset($postData[$element]))) { // Save this setting SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_admins` SET `%s`='%s' WHERE `id`=%s LIMIT 1", - array($element, $postData[$element][$id], $id), __FUNCTION__, __LINE__); + array( + $element, + $postData[$element][$id], + $id + ), __FUNCTION__, __LINE__); // Admin account saved $message = '{--ADMIN_ACCOUNT_SAVED--}'; diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 4079b8fef9..733d25ce18 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1835,7 +1835,7 @@ function getMtWord2 () { return $GLOBALS[__FUNCTION__]; } -// "Getter" for mt_word2 +// "Getter" for mt_word3 function getMtWord3 () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { @@ -1847,6 +1847,30 @@ function getMtWord3 () { return $GLOBALS[__FUNCTION__]; } +// "Getter" for START_TDAY +function getStartTday () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = getConfig('START_TDAY'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + +// "Getter" for START_YDAY +function getStartYday () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = getConfig('START_YDAY'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // "Getter" for main_title function getMainTitle () { // Do we have cache?