[TYPO3-core] RFC: Bug #10263: Multiple calls to deprecated function "fixed_lgd_pre"

Susanne Moog typo3 at susannemoog.de
Sun Mar 1 09:24:56 CET 2009


Hey Benni,

Benjamin Mack schrieb:
> Hey Susanne,
> 
> I don't get this, why do we need to switch from positive to negative
> char counts?
> 

easy:

"fixed_lgd_pre" (the deprecated method) truncates a string at given
length and _prepends_ '...'

The replacement method "fixed_lgd_cs" _appends_ '...' after x chars. Now
when we want to replace the first method with the second we have to use
a negative char length. (And I just realize I can't really explain
code... I hope you understood despite my jumbled explanation)

Regards,

Susanne


More information about the TYPO3-team-core mailing list