Bug #20291
closedUsing User-Setting "titleLen" in element browser
0%
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