X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=24a2f340955ed5fdf4eaafd8729ea828cbed4461;hp=7950dee171370b1af54c723558dc104898837dab;hb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;hpb=5c159f0b199d12742dcd65d5d638cb504ee93c66 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 7950dee171..24a2f34095 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -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?