X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-sql_patches.php;h=64883e68b3df23c8d11cd3314ce926e95194d640;hb=b6a966455449d583ca8d059a4bb64123df603cef;hp=138f723c1d053ad4807b114f3ffcbdcec4e94dff;hpb=b77d2b0f4cd700bd752d12f76f7a3a403841ca1c;p=mailer.git diff --git a/inc/extensions/ext-sql_patches.php b/inc/extensions/ext-sql_patches.php index 138f723c1d..64883e68b3 100644 --- a/inc/extensions/ext-sql_patches.php +++ b/inc/extensions/ext-sql_patches.php @@ -756,23 +756,14 @@ INDEX (`ip`) // Read key from secret file if ((isExtensionInstalledAndNewer('sql_patches', '0.3.6')) && ((getFileHash() == '') || (getMasterSalt() == '') || (getPassScramble() == ''))) { - // Cache instance // Maybe need setup of secret key! loadIncludeOnce('inc/gen_sql_patches.php'); - - // @TODO Rewrite this to a filter - if ((isExtensionInstalledAndNewer('cache', '0.1.2')) && (isCacheInstanceValid())) { - // Destroy some cache files - if ($GLOBALS['cache_instance']->loadCacheFile('config')) $GLOBALS['cache_instance']->removeCacheFile(); - if ($GLOBALS['cache_instance']->loadCacheFile('extension')) $GLOBALS['cache_instance']->removeCacheFile(); - if ($GLOBALS['cache_instance']->loadCacheFile('modules')) $GLOBALS['cache_instance']->removeCacheFile(); - } // END - if } // END - if // Test again if ((isExtensionInstalledAndNewer('sql_patches', '0.3.6')) && (getFileHash() != '') && (getMasterSalt() != '') && (getPassScramble() != '')) { // File hash fas generated so we can also file the secret file... hopefully. - $hashFile = sprintf("%sinc/cache/.%s", getPath(), getFileHash()); + $hashFile = sprintf("%sinc/cache/.%s.cache", getPath(), getFileHash()); if (isFileReadable($hashFile)) { // Read file setConfigEntry('secret_key', readFromFile($hashFile));