]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-refsystem.php
Fix for 'ref_system'
[mailer.git] / inc / loader / load_cache-refsystem.php
index b841bd1de0b00ba5852b63821fe7db78b21397b4..5025371b66918bc8b408272545028135b054216d 100644 (file)
@@ -37,12 +37,15 @@ if (!defined('__SECURITY')) {
        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");