---
/var/www/html/typo3-svn/TYPO3core/trunk-orig/typo3/alt_topmenu_dummy.php        
2007-05-16
14:57:49.000000000 +0200
+++ /var/www/html/typo3-svn/TYPO3core/trunk/typo3/alt_topmenu_dummy.php
2007-05-19 12:34:03.000000000 +0200
@@ -82,6 +82,8 @@
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TBE_MODULES,$TBE_TEMPLATE;

+debug ($BE_USER->uc, '$BE_USER->uc', __LINE__, __FILE__);
+
                        // Remember if noMenuMode is set to 'icons' or not 
because the hook
will be ignored in this case.
                if (!strcmp($BE_USER->uc['noMenuMode'],'icons'))        { 
$iconMenuMode =
true; }

@@ -106,23 +108,22 @@
                        ksort($contentArray);
                }

-                       // If noMenuMode is set to 'icons' or if a hook was 
found, display
menu instead of nothingness
-               if ($iconMenuMode || count($contentArray))      {
+                       // Loading the modules for this backend user:
+               $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
+               $loadModules->observeWorkspaces = TRUE;
+               $loadModules->load($TBE_MODULES);
+
+                       // Creating menu object:
+               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');

-                               // Loading the modules for this backend user:
-                       $loadModules = 
t3lib_div::makeInstance('t3lib_loadModules');
-                       $loadModules->observeWorkspaces = TRUE;
-                       $loadModules->load($TBE_MODULES);
-
-                               // Creating menu object:
-                       $alt_menuObj = 
t3lib_div::makeInstance('alt_menu_functions');
-
-                               // Start page
-                       $TBE_TEMPLATE->docType = 'xhtml_trans';
-                       $TBE_TEMPLATE->bodyTagId.= '-iconmenu';
-                       $TBE_TEMPLATE->JScodeArray[] =
$alt_menuObj->generateMenuJScode($loadModules->modules);
+                       // Start page
+               $TBE_TEMPLATE->docType = 'xhtml_trans';
+               $TBE_TEMPLATE->bodyTagId.= '-iconmenu';
+               $TBE_TEMPLATE->JScodeArray[] =
$alt_menuObj->generateMenuJScode($loadModules->modules);
+               $this->content.=$TBE_TEMPLATE->startPage('Top frame icon menu');

-                       $this->content.=$TBE_TEMPLATE->startPage('Top frame 
icon menu');
+                       // If noMenuMode is set to 'icons' or if a hook was 
found, display
menu instead of nothingness
+               if ($iconMenuMode || count($contentArray))      {

                        if ($iconMenuMode)      {
                                $contentArray[0][] = '<td
class="c-menu">'.$alt_menuObj->topMenu($loadModules->modules,0,'',3).'</td>';
Seulement dans /var/www/html/typo3-svn/TYPO3core/trunk/typo3/ext: cc_debug
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Reply via email to