[TYPO3-core] RFC #10272: t3lib_div::fixed_lgd_cs needs a third parameter for appending a custom string to a truncated string

Uschi Renziehausen typo3news at otherone.de
Mon Jan 26 18:29:08 CET 2009


This is an SVN patch request.

Type: Bugfix / Feature

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

Branches: trunk

Problem:
4.3 encourages developers not to use the deprecated function fixed_lgd anymore. Instead, fixed_ldg_cs shall be used. The 
new method lacks one parameter the old one had, i.e. a string that may be appended to the truncated string. Instead we 
now have hardcoded '...' in fixed_ldg_cs.

Solution:
Introduce a third parameter named $appendString that defaults to '...'.

Uschi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10272_fixed_lgd_cs_params.patch
Type: text/x-patch
Size: 1392 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090126/73746bbb/attachment-0001.bin 


More information about the TYPO3-team-core mailing list