#20291Using User-Setting "titleLen" in element browser
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 = ‘[‘.$GLOBALS[‘LANG’]->sL(‘LLL:EXT:lang/locallang_core.php:labels.no_title’,1).’]‘;
} 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 = ‘[‘.$GLOBALS[‘LANG’]->sL(‘LLL:EXT:lang/locallang_core.php:labels.no_title’,1).’]‘;
} else {
$code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code,$maxLen));
}
(issue imported from #M10865)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.