Wrapper functions introduced for configuration, loaders refactured:
[mailer.git] / inc / loader / load-modules.php
index 2dda2da8d6db3e83dd2f418cc4974a8aee49b26d..a0831eae223c8afb6f42399c5e69aa9896102b0a 100644 (file)
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} // END - if
-
-// Use this code if you don't want to run this cache loader on installation phase
-if (isInstallationPhase()) return;
+} elseif (isInstallationPhase()) {
+       // Use this code if you don't want to run this cache loader on installation phase
+       return;
+}
 
 // Next cached table is the module registry (mod_reg)...
 if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {