Fixed bug #9346: Preinitialise GLOBALS[LANG] in init.php
[Packages/TYPO3.CMS.git] / typo3 / classes / class.modulemenu.php
index 8905ee9..36dc023 100644 (file)
 
 
 if(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
-       require_once(PATH_typo3.'sysext/lang/lang.php');
-
-       $GLOBALS['LANG'] = t3lib_div::makeInstance('language');
-       $GLOBALS['LANG']->init($GLOBALS['BE_USER']->uc['lang']);
        $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xml');
 }
 
@@ -552,4 +548,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.modulemenu.php']);
 }
 
-?>
\ No newline at end of file
+?>