X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=1c3e2b60d1f61690bbc7f7a8ab7dda538c804c8a;hb=985561270461045c64719266ca6b3a795f6cd76a;hp=7950dee171370b1af54c723558dc104898837dab;hpb=39fbdb68ef03c3f5828b02c7676371e7b2ba5327;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 7950dee171..1c3e2b60d1 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?