Project

General

Profile

Actions

Bug #19918

closed

t3lib_div::fixed_lgd_cs needs a third parameter for appending a custom string to a truncated string

Added by Uschi Renziehausen almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-01-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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 '...'.

Patch is attached.

(issue imported from #M10272)


Files

10272_fixed_lgd_cs_params.patch (1.36 KB) 10272_fixed_lgd_cs_params.patch Administrator Admin, 2009-01-26 18:23
10272_fixed_lgd_cs_params_v2.patch (1.68 KB) 10272_fixed_lgd_cs_params_v2.patch Administrator Admin, 2009-01-26 20:24
Actions #1

Updated by Uschi Renziehausen almost 16 years ago

v2 of the patch pays better attention to cgl: tabs at the beginning of line, spaces inside lines.

Actions #2

Updated by Steffen Kamper almost 16 years ago

committed to trunk, rev 4867

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF