// Get version from name
function THEME_GET_VERSION ($name) {
- global $cacheArray, $_CONFIG;
+ global $cacheArray;
// Is the extension "theme" installed?
if (!EXT_IS_ACTIVE("theme")) {
$cver = $cacheArray['themes']['theme_ver'][$name];
// Count up
- if (getConfig('cache_hits') > 0) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; }
+ incrementConfigEntry('cache_hits');
} elseif (GET_EXT_VERSION("cache") != "0.1.8") {
// Load version from database
$result = SQL_QUERY_ESC("SELECT theme_ver FROM `"._MYSQL_PREFIX."_themes` WHERE theme_path='%s' LIMIT 1",
// Checks if a theme is active
function THEME_IS_ACTIVE ($name) {
- global $cacheArray, $_CONFIG;
+ global $cacheArray;
// Is the extension "theme" installed?
if (!EXT_IS_ACTIVE("theme")) {
$active = ($cacheArray['themes']['theme_active'][$name] == "Y");
// Count up
- if (getConfig('cache_hits') > 0) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; }
+ incrementConfigEntry('cache_hits');
} elseif (GET_EXT_VERSION("cache") != "0.1.8") {
// Check if current theme is already imported or not
$result = SQL_QUERY_ESC("SELECT theme_active FROM `"._MYSQL_PREFIX."_themes` WHERE theme_path='%s' AND theme_active='Y' LIMIT 1",
// Gets current human-readable theme name
function GET_CURR_THEME_NAME () {
- global $cacheArray, $_CONFIG;
+ global $cacheArray;
// Is the extension "theme" installed?
if (!EXT_IS_ACTIVE("theme")) {
$name = $cacheArray['themes']['theme_name'][$name];
// Count up
- if (getConfig('cache_hits') > 0) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; }
+ incrementConfigEntry('cache_hits');
} elseif (GET_EXT_VERSION("cache") != "0.1.8") {
// Check if current theme is already imported or not
$result = SQL_QUERY_ESC("SELECT theme_name FROM `"._MYSQL_PREFIX."_themes` WHERE theme_path='%s' AND theme_active='Y' LIMIT 1",