]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-impressum.php
Right place...
[mailer.git] / inc / loader / load_cache-impressum.php
index 20ed9562b6f99a80dde2e39ec4fe03fd694d852a..d05ff1d6fa7b31bb0c05e32baaa2fc5d0dcc860f 100644 (file)
@@ -44,13 +44,16 @@ if (!defined('__SECURITY')) {
        return;
 }
 
+// Use this code if you don't want to run this cache loader on installation phase
+if (isInstallationPhase()) return;
+
 // Let's start with the admins table...
 if (($GLOBALS['cache_instance']->loadCacheFile('imprint')) && ($GLOBALS['cache_instance']->extensionVersionMatches('imprint'))) {
        // Load cache
        $GLOBALS['cache_array']['imprint'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file
-       $GLOBALS['cache_instance']->init('imprint');
+       $GLOBALS['cache_instance']->init();
 
        // Load every data from DB to cache file
        $add = runFilterChain('sql_admin_extra_data');
@@ -68,9 +71,6 @@ if (($GLOBALS['cache_instance']->loadCacheFile('imprint')) && ($GLOBALS['cache_i
        // Close cache
        $GLOBALS['cache_instance']->storeExtensionVersion('imprint');
        $GLOBALS['cache_instance']->finalize();
-
-       // Include loader again
-       loadInclude('inc/loader/'.basename(__FILE__));
 }
 
 // [EOF]