[TYPO3-core] RFC: #5618: Wrong cropping of multi-byte $TCA field
Martin Kutschker
masi-no at spam-typo3.org
Thu Feb 5 17:22:40 CET 2009
Michael Miousse schrieb:
> Hi.
>
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker reference: http://bugs.typo3.org/view.php?id=5618
>
> Branches: trunk (revision 4950)
>
> Problem:
> Error while croppring a multi-byte field content on the save in tcemain.
>
> Solution:
> use $LANG->csConvObj->substr other than plain old substr
Is $LANG always available for TCEmain? In the "real world" probably yes.
But why OTOH doesn't it use then the standard localization features of
TYPO3? I guess it's because conceptually t3lib is not part of the TYPO3
the CMS.
Please check for the existence of $LANG before you use it (see t3lib_div
for examples).
Masi
More information about the TYPO3-team-core
mailing list