X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Ftheme_functions.php;h=4a56e674ef2c6f2ff1dfbd0a1f4a6fbb85c02032;hp=ebdaf6ee52ae855eb4059d4986015a9986250c49;hb=59bd8a9805c51c895a92cc12825f4cbdfd792597;hpb=d2b67884c1d4c5aba9ea85400355bc23f7a2dcad diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index ebdaf6ee52..4a56e674ef 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -81,8 +81,6 @@ function THEME_SELECTION_BOX($mod, $act, $wht, $result) { // Get version from name function THEME_GET_VERSION ($name) { - global $cacheArray; - // Is the extension "theme" installed? if (!EXT_IS_ACTIVE("theme")) { // Then abort here @@ -93,9 +91,9 @@ function THEME_GET_VERSION ($name) { $cver = "?.?"; // Is the cache entry there? - if (isset($cacheArray['themes']['theme_ver'][$name])) { + if (isset($GLOBALS['cache_array']['themes']['theme_ver'][$name])) { // Get the version from cache - $cver = $cacheArray['themes']['theme_ver'][$name]; + $cver = $GLOBALS['cache_array']['themes']['theme_ver'][$name]; // Count up incrementConfigEntry('cache_hits'); @@ -126,8 +124,6 @@ function THEME_CHECK_EXIST ($name) { // Checks if a theme is active function THEME_IS_ACTIVE ($name) { - global $cacheArray; - // Is the extension "theme" installed? if (!EXT_IS_ACTIVE("theme")) { // Then abort here @@ -138,9 +134,9 @@ function THEME_IS_ACTIVE ($name) { $active = false; // Is the cache entry there? - if (isset($cacheArray['themes']['theme_active'][$name])) { + if (isset($GLOBALS['cache_array']['themes']['theme_active'][$name])) { // Get the version from cache - $active = ($cacheArray['themes']['theme_active'][$name] == "Y"); + $active = ($GLOBALS['cache_array']['themes']['theme_active'][$name] == "Y"); // Count up incrementConfigEntry('cache_hits'); @@ -162,8 +158,6 @@ function THEME_IS_ACTIVE ($name) { // Gets current human-readable theme name function GET_CURR_THEME_NAME () { - global $cacheArray; - // Is the extension "theme" installed? if (!EXT_IS_ACTIVE("theme")) { // Then abort here @@ -174,9 +168,9 @@ function GET_CURR_THEME_NAME () { $name = GET_CURR_THEME(); // Is the cache entry there? - if (isset($cacheArray['themes']['theme_name'][$name])) { + if (isset($GLOBALS['cache_array']['themes']['theme_name'][$name])) { // Get the version from cache - $name = $cacheArray['themes']['theme_name'][$name]; + $name = $GLOBALS['cache_array']['themes']['theme_name'][$name]; // Count up incrementConfigEntry('cache_hits');