Wrapper functions introduced for configuration, loaders refactured:
[mailer.git] / inc / loader / load-refsystem.php
index 55cf614561b50c1cb7013e1f4c3551db85ad5b1d..0cef9084bd00dfa9503a837ef09277829455099e 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;
 }
 
-// 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 (refsystem)...
 if (($GLOBALS['cache_instance']->loadCacheFile('refsystem')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
        // Load referal system from cache