Bug #23581 ยป 15770.diff

Administrator Admin, 2010-09-23 09:20

View differences:

typo3/classes/class.modulemenu.php (Arbeitskopie)
207 207
				'description' => $GLOBALS['LANG']->moduleLabels['labels'][$moduleKey.'label']
208 208
			);
209 209

  
210
			if(is_array($moduleData['sub'])) {
211

  
210
			if (!is_array($moduleData['sub'])) {
211
					// Work around for modules with own main entry, but being self the only submodule
212
				$modules[$moduleKey]['subitems'][$moduleKey] = array(
213
					'name' => $moduleName,
214
					'title' => $GLOBALS['LANG']->moduleLabels['tabs'][$moduleName . '_tab'],
215
					'onclick' => 'top.goToModule(\'' . $moduleName . '\');',
216
					'icon' => $this->getModuleIcon($moduleName . '_tab'),
217
					'link' => $moduleLink,
218
					'originalLink' => $moduleLink,
219
					'description' => $GLOBALS['LANG']->moduleLabels['labels'][$moduleKey . 'label'],
220
					'navigationFrameScript' => NULL,
221
					'navigationFrameScriptParam' => NULL,
222
				);
223
			} else {
212 224
				foreach($moduleData['sub'] as $submoduleName => $submoduleData) {
213 225
					$submoduleLink = t3lib_div::resolveBackPath($submoduleData['script']);
214 226

  
    (1-1/1)