// Load referal system from cache
global $cacheArray;
$cacheArray['ref_depths'] = $cacheInstance->getArrayFromCache();
-} elseif (($_CONFIG['cache_refdepth'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
+} elseif ((getConfig('cache_refdepth') == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->init("REFDEPTHS");
$cacheInstance->storeExtensionVersion("sql_patches");