X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-them.php;h=ae2d6bfceb665bea42d094a50f862775983c3547;hb=086762b9606889fbda59d946b7b557d764ec2c0e;hp=da82aac80e20248ccd3617a9191baebdf946e0b6;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/loader/load_cache-them.php b/inc/loader/load_cache-them.php index da82aac80e..ae2d6bfceb 100644 --- a/inc/loader/load_cache-them.php +++ b/inc/loader/load_cache-them.php @@ -44,6 +44,9 @@ if (!defined('__SECURITY')) { return false; } +// Use this code if you don't want to run this cache loader on installation phase +if (isInstallationPhase()) return; + // Next cached table is the referal system (themes)... if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_instance']->extensionVersionMatches('theme'))) { // Load referal system from cache @@ -68,9 +71,9 @@ if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_in // Remove dummy array unset($cache); -} elseif (getOutputMode() != '1') { +} elseif (getOutputMode() != 1) { // Create cache file here - $GLOBALS['cache_instance']->init('THEMES'); + $GLOBALS['cache_instance']->init(); // Load all themes and their data if (getExtensionVersion('theme') >= '0.0.7') { @@ -89,9 +92,6 @@ if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_in // Close the cache $GLOBALS['cache_instance']->storeExtensionVersion('theme'); $GLOBALS['cache_instance']->finalize(); - - // Include loader again - loadInclude('inc/loader/'.basename(__FILE__)); } // [EOF]