Actions
Bug #17366
closedParse error: syntax error, unexpected T_STRING in newloginbox/locallang.xml on line 1
Start date:
2007-06-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
PHP5.2.1, TYPO3 4.2trunk:
After installation of current newloginbox from SVN I cannot any more create a new page content element.
It ends up in the error message and no editing is possible any more:
After installation of current newloginbox from SVN I cannot any more create a new page content element.
It ends up in the error message and no editing is possible any more:
- Time Function Location
1 0.0021 {main}() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:0
2 0.4190 SC_db_new_content_el->main() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:633
3 0.4205 SC_db_new_content_el->getWizardItems() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:259
4 0.4205 SC_db_new_content_el->wizardArray() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:389
5 0.4219 tx_newloginbox_pi1_wizicon->proc() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:532
6 0.4219 tx_newloginbox_pi1_wizicon->includeLocalLang() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/ext/newloginbox/pi1/class.tx_newloginbox_pi1_wizicon.php:
! ) Parse error: syntax error, unexpected T_STRING in /var/www/html/typo3-svn/TYPO3core/trunk/typo3/ext/newloginbox/locallang.xml on line 1
Call Stack
It works only if you change the function includeLocalLang in
ext/newloginbox/pi1/class.tx_newloginbox_pi1_wizicon.php:
/**
* Includes the locallang.xml and returns the $LOCAL_LANG array found in that file.
*/
function includeLocalLang() {
$typoVersion = t3lib_div::int_from_ver($GLOBALS['TYPO_VERSION']);
if ($typoVersion >= 3008000) {
$LOCAL_LANG = $GLOBALS['LANG']->includeLLFile(t3lib_extMgm::extPath('newloginbox').'locallang.xml',FALSE);
} else {
include(t3lib_extMgm::extPath('newloginbox').'locallang.php');
}
return $LOCAL_LANG;
}
(issue imported from #M5756)
Files
Actions