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