[TYPO3-core] RFC #10742: Bug: LOCAL_LANG default values are overwritten by localized text

Mathias Gisch m.gisch at mx.uni-saarland.de
Fri Mar 20 21:29:10 CET 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=10742

Branches:
Trunk

Problem:
The readLLXMLfile-function iterates through the $LOCAL_LANG['default']
values by assigning by reference to $labelValue.
Since $labelValue is not unset later, the reference will stay on the last
value of $LOCAL_LANG['default']. Later then $labelValue is used again to
iterate through $LOCAL_LANG[$langKey], and it then overwrites the last value
in $LOCAL_LANG['default'] since the reference is still intact.

Solution:
Unset $labelValue after iterating through $LOCAL_LANG['default']

Notes:
I attached a screenshot and a XML-file for testing.

Best regards,

    Mathias Gisch




-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.png
Type: application/octet-stream
Size: 8919 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090320/1338a39d/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: locallang-test.xml
Type: application/octet-stream
Size: 673 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090320/1338a39d/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: readLLXMLfile.patch
Type: application/octet-stream
Size: 469 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090320/1338a39d/attachment-0005.obj 


More information about the TYPO3-team-core mailing list