X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-revision.php;h=d15d410c30a41aae86a776ab6d0582f1c6dbbcfa;hb=5119510b066e7d05bceb19fd24a2287113a6190f;hp=b79c66743ee4c1ae8e4f4459e94936ce3a96fd5f;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git diff --git a/inc/loader/load_cache-revision.php b/inc/loader/load_cache-revision.php index b79c66743e..d15d410c30 100644 --- a/inc/loader/load_cache-revision.php +++ b/inc/loader/load_cache-revision.php @@ -1,7 +1,7 @@ loadCacheFile('revision'))) { +if ($GLOBALS['cache_instance']->loadCacheFile('revision')) { // Load revision from cache $GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache(); -} elseif ((getOutputMode() != '1')) { +} elseif ((isHtmlOutputMode())) { // Create cache file here - $GLOBALS['cache_instance']->init('revision'); + $GLOBALS['cache_instance']->init(); // add the new RevInfos in and saves it to the cache - $GLOBALS['cache_instance']->addRow(getArrayFromActualVersion()); + $GLOBALS['cache_instance']->addRow(getArrayFromRepositoryData()); // Close the cache $GLOBALS['cache_instance']->finalize(); // Generate FQFN for old revision file - $FQFN = sprintf("%s%s/.revision", getConfig('PATH'), getConfig('CACHE_PATH')); + $FQFN = sprintf("%s/.revision", getCachePath()); // Is it there? if (isFileReadable($FQFN)) { // Then remove it removeFile($FQFN); } // END - if - - // Include loader again - loadInclude('inc/loader/'.basename(__FILE__)); } // [EOF]