Project

General

Profile

Actions

Bug #20291

closed

Using User-Setting "titleLen" in element browser

Added by Nadine Schwingler about 15 years ago. Updated over 13 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Even if the max-Title-Length is set by the user, the system uses the fixed Length given by typo3.

My opionion is: if you can set the length in the user-settings it should be used everywhere.

Solution:
in typo3/class.browslinks ca. line 215 the code says:

if (!$code) {
$code = '<i>['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).']</i>';
} else {
$code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code,$maxLen));
}

change it to:
$maxLen = $GLOBALS['BE_USER']->uc['titleLen'];
if ($maxLen < $this->fixedL) $maxLen = $this->fixedL;

if (!$code) {
$code = '<i>['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).']</i>';
} else {
$code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code,$maxLen));
}
(issue imported from #M10865)


Files

10865.diff (377 Bytes) 10865.diff Administrator Admin, 2009-04-25 21:26

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #20099: element browser title length is hardcodedClosedIngo Renner2009-02-27

Actions
Actions #1

Updated by Christian Kuhn almost 15 years ago

Committed to trunk rev. 5522

Actions

Also available in: Atom PDF