// Rewrite module cache
$modArray = $GLOBALS['cache_array']['modules'];
+
+ // Do only process valid arrays
+ if (!isset($modArray['module'])) {
+ // We should fix this!
+ debug_report_bug(__FILE__, __LINE__, 'modArray=<pre>'.print_r($modArray, true).'</pre>');
+ } // END - if
+
+ // 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
} // END - foreach
} // END - foreach
unset($modArray);
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();