require($INC);
}
+// Make cacheInstance global
+global $cacheInstance;
+
// Next cached table is the referal system (refsystem)...
if (($cacheInstance->loadCacheFile("refsystem")) && ($cacheInstance->extensionVersionMatches("sql_patches"))) {
// Load referal system from cache
global $cacheArray;
- $cacheArray['ref_system'] = $cacheInstance->getArrayFromCache();
-} elseif (($_CONFIG['cache_refsys'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
+ $cacheArray['refsystem'] = $cacheInstance->getArrayFromCache();
+} elseif ((getConfig('cache_refsys') == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
$cacheInstance->init("REFSYSTEM");
$cacheInstance->storeExtensionVersion("sql_patches");