]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-modules.php
Better checks + always return FALSE on abort
[mailer.git] / inc / loader / load-modules.php
index 03fd6c9bd36fac15eeec3b1b70eee3921d244be1..c6027de079594f50b7e5e706d7e671ec452a5dbb 100644 (file)
@@ -39,8 +39,8 @@
 if (!defined('__SECURITY')) {
        die();
 } elseif (isInstallationPhase()) {
-       // Use this code if you don't want to run this cache loader on installation phase
-       return;
+       // Do not run in installation phase
+       return FALSE;
 }
 
 // Next cached table is the module registry (mod_reg)...
@@ -87,7 +87,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i
                } // END - foreach
        } // END - foreach
        unset($modArray);
-} elseif (isHtmlOutputMode()) {
+} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();