added missing description to module menu
authorIngo Renner <ingo.renner@typo3.org>
Thu, 24 Jan 2008 15:59:25 +0000 (15:59 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Thu, 24 Jan 2008 15:59:25 +0000 (15:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2957 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/classes/class.modulemenu.php

index 1b5745d..8743f50 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-24  Ingo Renner  <ingo@typo3.org>
+
+       * added missing description to module menu, credits Steffen Kamper
+
 2008-01-24  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * Added feature: Various enhancements to link dialogues in htmlArea RTE
index f5041c9..f4ddc1a 100644 (file)
@@ -139,7 +139,7 @@ class ModuleMenu {
                        }
 
                                //TODO make icon a background image using css
-                       $menu .= '<li id="'.$moduleKey.'" class="menuSection"><div>'.$moduleData['icon']['html'].' '.$moduleLabel.'</div>';
+                       $menu .= '<li id="'.$moduleKey.'" class="menuSection" title="'.$moduleData['description'].'"><div>'.$moduleData['icon']['html'].' '.$moduleLabel.'</div>';
 
                                // traverse submodules
                        if(is_array($moduleData['subitems'])) {
@@ -228,7 +228,8 @@ class ModuleMenu {
                                'cssId'   => $moduleCssId,
                                'icon'    => $moduleIcon,
                                'link'    => $moduleLink,
-                               'prefix'  => $moduleNavigationFramePrefix
+                               'prefix'  => $moduleNavigationFramePrefix,
+                               'description'   => $GLOBALS['LANG']->moduleLabels['labels'][$moduleKey.'label']
                        );
 
                        if(is_array($moduleData['sub'])) {