Fixed bug #14202: htmlArea RTE: Tables may get lost when using remove format feature
[Packages/TYPO3.CMS.git] / typo3 / alt_menu_sel.php
old mode 100755 (executable)
new mode 100644 (file)
index 0e77ed8..94e1bb6
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -42,7 +42,7 @@
  *
  *   73: class SC_alt_menu_sel
  *   81:     function main()
- *  107:     function printContent()
+ *  108:     function printContent()
  *
  * TOTAL FUNCTIONS: 2
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -52,8 +52,6 @@
 
 require ('init.php');
 require ('template.php');
-require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
-require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 require_once ('class.alt_menu_functions.inc');
 
 
@@ -83,16 +81,19 @@ class SC_alt_menu_sel {
 
                        // Initialize modules
                $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
+               $loadModules->observeWorkspaces = TRUE;
                $loadModules->load($TBE_MODULES);
 
                        // Start page
                $TBE_TEMPLATE->form = '<form action="">';
-               $TBE_TEMPLATE->docType = 'xhtml_trans';
+
+                       // add menu JS
+               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
+               $TBE_TEMPLATE->JScodeArray[] = $alt_menuObj->generateMenuJScode($loadModules->modules);
 
                $this->content.=$TBE_TEMPLATE->startPage('Selector box menu');
 
                        // Make menu and add it:
-               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
                $this->content.=$alt_menuObj->topMenu($loadModules->modules,0,'',2);
 
                        // End page:
@@ -109,23 +110,16 @@ class SC_alt_menu_sel {
        }
 }
 
-// Include extension?
+
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_menu_sel.php']) {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_menu_sel.php']);
 }
 
 
 
-
-
-
-
-
-
-
-
 // Make instance:
 $SOBE = t3lib_div::makeInstance('SC_alt_menu_sel');
 $SOBE->main();
 $SOBE->printContent();
-?>
+
+?>
\ No newline at end of file