Wrapper functions introduced for configuration, loaders refactured:
[mailer.git] / inc / loader / load-imprint.php
index 0389e5e701a8e92f4b6cd19c0f3f3fef0efe1f2e..80de83f533d55f410e198d91fa6969952d19a909 100644 (file)
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
+} elseif (isInstallationPhase()) {
+       // Use this code if you don't want to run this cache loader on installation phase
+       return;
 } elseif (!isExtensionInstalled('imprint')) {
        // Not not cache if not installed!
        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