X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-modules.php;h=64a99d3f8bb9f82fcf6446952396e1679edc7aab;hb=5119510b066e7d05bceb19fd24a2287113a6190f;hp=be0d09f63090ae18b92944d31600789e1818f04f;hpb=16e124ec4e2254897bf4394e09af27507049fe9f;p=mailer.git diff --git a/inc/loader/load_cache-modules.php b/inc/loader/load_cache-modules.php index be0d09f630..64a99d3f8b 100644 --- a/inc/loader/load_cache-modules.php +++ b/inc/loader/load_cache-modules.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -61,8 +59,17 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i // Rewrite some parts foreach ($modArray['module'] as $key => $mod) { + // Default without sql_patches + $entries = array('id','title','locked','hidden','admin_only','mem_only'); + + // Is ext-sql_patches newer or equal 0.3.6? + if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) { + // Add 'has_menu' + $entries[] = 'has_menu'; + } // END - if + // Add all - foreach (array('id','title','locked','hidden','admin_only','mem_only','has_menu') as $entry) { + foreach ($entries as $entry) { // Is the entry set? if (isset($GLOBALS['cache_array']['modules'][$entry][$key])) { // Transfer it @@ -77,7 +84,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i } // END - foreach } // END - foreach unset($modArray); -} elseif (getOutputMode() != 1) { +} elseif (isHtmlOutputMode()) { // Create cache file here $GLOBALS['cache_instance']->init();