]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-themes.php
MINOR: Small code improvements
[mailer.git] / inc / loader / load-themes.php
index 41f43e5a080565a6d93124e92816fd1570bbfd0a..123d538d8da9221a8223b40b0e5ab0c0ef4d43c3 100644 (file)
 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;
 } elseif (!isExtensionActive('theme')) {
        // Skip this loader
-       return false;
+       return FALSE;
 }
 
 // Next cached table are the themes
@@ -70,7 +70,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_in
 
        // Remove dummy array
        unset($cache);
-} elseif (isHtmlOutputMode()) {
+} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();