Wrapper functions introduced for configuration, loaders refactured:
[mailer.git] / inc / loader / load-themes.php
index 0deca53068072853d9d0a80176db761028065807..4461adc71ca6d074d3dd1adc4e452de6a5f2857b 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 (!isExtensionActive('theme')) {
        // Skip this loader
        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