X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-sql_patches.php;h=e589f5f6991e3dd384c84e86b6d32d2b8126aa9d;hb=4c83f0cc7459cad9ec9c1c68963f5365155ee935;hp=4c6b4cf8ca151f336d0dd81a37d25c59bffe0852;hpb=ea295a391646261bc643264570404f6862abcbd4;p=mailer.git diff --git a/inc/extensions/ext-sql_patches.php b/inc/extensions/ext-sql_patches.php index 4c6b4cf8ca..e589f5f699 100644 --- a/inc/extensions/ext-sql_patches.php +++ b/inc/extensions/ext-sql_patches.php @@ -732,18 +732,16 @@ default: // Do stuff when extension is loaded // Read key from secret file if ((getConfig('file_hash') == "") || (getConfig('master_salt') == "") || (getConfig('pass_scramble') == "")) { // Cache instance - global $cacheInstance; - // Maybe need setup of secret key! LOAD_INC_ONCE("inc/gen_sql_patches.php"); // @TODO Rewrite this to a filter! - if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isset($cacheInstance)) && (is_object($cacheInstance))) { + if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isset($GLOBALS['cache_instance'])) && (is_object($GLOBALS['cache_instance']))) { // Remove extensions and mod_reg cache file LOAD_INC_ONCE("inc/libs/cache_functions.php"); require(sprintf("%sinc/extensions/ext-cache.php", constant('PATH'))); - if ($cacheInstance->loadCacheFile("extensions", true)) $cacheInstance->destroyCacheFile(); - if ($cacheInstance->loadCacheFile("mod_reg")) $cacheInstance->destroyCacheFile(); + if ($GLOBALS['cache_instance']->loadCacheFile("extensions", true)) $GLOBALS['cache_instance']->destroyCacheFile(); + if ($GLOBALS['cache_instance']->loadCacheFile("mod_reg")) $GLOBALS['cache_instance']->destroyCacheFile(); } // END - if } // END - if