[TYPO3-core] RFC: Bug 10535: Call to deprecated fixed_lgd_pre() in class.t3lib_timetrack.php
Christian Kuhn
lolli at schwarzbu.ch
Fri Feb 27 00:06:26 CET 2009
Hi.
Uschi Renziehausen wrote:
> Problem: There is one call to t3lib_div::fixed_lgd_pre() in
> class.t3lib_timetrack.php that will clutter up the deprecation log.
>
> Solution: use t3lib_div::fixed_lgd_cs() with positive second parameter
> instead.
With #10263 in revision 4869 this line was changed:
- $theLabel = t3lib_div::fixed_lgd_pre($theLabel, $keyLgd);
+ $theLabel = t3lib_div::fixed_lgd_pre($theLabel, -$keyLgd);
I guess that was an overseen typo (value inverted, but function name not
changed).
So correct fix would be to not invert the parameter again but only
change the function call?
- $theLabel = t3lib_div::fixed_lgd_pre($theLabel, -$keyLgd);
+ $theLabel = t3lib_div::fixed_lgd_cs($theLabel, -$keyLgd);
Regards
Christian
More information about the TYPO3-team-core
mailing list