Project

General

Profile

Bug #19328 ยป 9346_lang.diff

Administrator Admin, 2008-09-15 10:55

View differences:

typo3/ajax.php (working copy)
require('init.php');
require('classes/class.typo3ajax.php');
require_once(PATH_typo3.'sysext/lang/lang.php');
$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
$GLOBALS['LANG']->init($GLOBALS['BE_USER']->uc['lang']);
// finding the script path from the variable
$ajaxID = (string) t3lib_div::_GP('ajaxID');
$ajaxScript = $TYPO3_CONF_VARS['BE']['AJAX'][$ajaxID];
typo3/classes/class.modulemenu.php (working copy)
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');
}
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.modulemenu.php']);
}
?>
?>
typo3/classes/class.shortcutmenu.php (working copy)
if(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) {
require_once('interfaces/interface.backend_toolbaritem.php');
require_once(PATH_t3lib.'class.t3lib_loadmodules.php');
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');
// needed to get the correct icons when reloading the menu after saving it
typo3/init.php (working copy)
$WEBMOUNTS = $BE_USER->returnWebmounts(); // ! WILL INCLUDE deleted mount pages as well!
$FILEMOUNTS = $BE_USER->returnFilemounts();
// *******************************
// $GLOBALS['LANG'] initialisation
// *******************************
require_once(PATH_typo3.'sysext/lang/lang.php');
$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
$GLOBALS['LANG']->init($BE_USER->uc['lang']);
// ****************
// CLI processing
// ****************
typo3/template.php (working copy)
// ******************************************************
// The backend language engine is started (ext: "lang")
// ******************************************************
require_once(PATH_typo3.'sysext/lang/lang.php');
$GLOBALS['LANG'] = t3lib_div::makeInstance('language');
$GLOBALS['LANG']->init($BE_USER->uc['lang']);
// ******************************
// The template is loaded
// ******************************
    (1-1/1)