]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-revision.php
Heacy rewrite/cleanup:
[mailer.git] / inc / loader / load-revision.php
index ac634f319ab1a92fcbe41fa5cf0c6a1b04176ba4..9292bb922f833c2e3477c91fe39a8d4b663eef59 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 if ($GLOBALS['cache_instance']->loadCacheFile('revision')) {
        // Load revision from cache
        $GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((isHtmlOutputMode())) {
+} elseif (((isHtmlOutputMode())) || (isAjaxOutputMode()) || (isRawOutputMode())) {
        // Create cache file here
        $GLOBALS['cache_instance']->init();
 
@@ -55,7 +55,7 @@ if ($GLOBALS['cache_instance']->loadCacheFile('revision')) {
        $GLOBALS['cache_instance']->finalize();
 
        // Generate FQFN for old revision file
-       $FQFN = sprintf("%s/.revision", getCachePath());
+       $FQFN = sprintf('%s/.revision', getCachePath());
 
        // Is it there?
        if (isFileReadable($FQFN)) {