// Get version from name
function THEME_GET_VERSION ($name) {
- global $cacheArray;
-
// Is the extension "theme" installed?
if (!EXT_IS_ACTIVE("theme")) {
// Then abort here
$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');
// 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
$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');
// 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
$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');