X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=5dde76d70ff69b904af45f5c951adead74aa4139;hb=522104747cdf407729cdff7c51157e12607207af;hp=7950dee171370b1af54c723558dc104898837dab;hpb=7997d491854dad4a6a6524d8cd8229a073f7cf59;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 7950dee171..5dde76d70f 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1523,11 +1523,11 @@ function isWhatTitleEnabled () { } // Checks wether stats are enabled -function ifStatsAreEnabled () { +function ifInternalStatsEnabled () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Then determine it - $GLOBALS[__FUNCTION__] = (getConfig('stats_enabled') == 'Y'); + $GLOBALS[__FUNCTION__] = (getConfig('internal_stats') == 'Y'); } // END - if // Return cached value @@ -2539,6 +2539,18 @@ function isDirectPaymentEnabled () { return $GLOBALS[__FUNCTION__]; } +// Checks wether JavaScript-based admin menu is enabled +function isAdminMenuJavascriptEnabled () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('sql_patches', '0.8.7')) && (getConfig('admin_menu_javascript') == 'Y')); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + // Wrapper to check if current task is for extension (not update) function isExtensionTask ($content) { // Do we have cache? @@ -2664,9 +2676,9 @@ function parseFloat ($floatString){ } // Generates a YES/NO option list from given default -function generateYesNoOptionList ($configValue = '') { +function generateYesNoOptionList ($defaultValue = '') { // Generate it - return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $configValue); + return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $defaultValue); } // "Getter" for total available receivers