Mahor rewrite:
[mailer.git] / inc / loader / load_cache-admin.php
index 336732ba9aabe3f213eadda4a5da50cb9f5d7efe..d55aa09f1bc2fabc4b6c6d36dfbb2982ff74d3f8 100644 (file)
@@ -80,7 +80,7 @@ if (($cacheInstance->loadCacheFile("admins")) && ($cacheInstance->extensionVersi
                $cacheInstance->destroyCacheFile();
                unset($cacheArray['admins']);
        }
-} elseif (($_CONFIG['cache_admins'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
+} elseif ((getConfig('cache_admins') == "Y") && ($CSS != "1") && ($CSS != "-1")) {
        // Create cache file
        $cacheInstance->init("ADMINS");
        $cacheInstance->storeExtensionVersion("admins");
@@ -117,7 +117,7 @@ if (GET_EXT_VERSION("admins") >= "0.3") {
                // Load referal system from cache
                global $cacheArray;
                $cacheArray['admin_acls'] = $cacheInstance->getArrayFromCache();
-       } elseif (($_CONFIG['cache_acls'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
+       } elseif ((getConfig('cache_acls') == "Y") && ($CSS != "1") && ($CSS != "-1")) {
                // Create cache file here
                $cacheInstance->init("ADMINS_ACLS");
                $cacheInstance->storeExtensionVersion("admins");