[TYPO3] no backend module can be started in TYPO3 SVN trunk

Franz Holzinger franz at fholzinger.com
Sat May 19 12:44:54 CEST 2007


---
/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


More information about the TYPO3-english mailing list