Bug #19792 ยป 10098.diff
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
*/
|
||
public static function fixed_lgd_cs($string,$chars) {
|
||
if (is_object($GLOBALS['LANG'])) {
|
||
return $GLOBALS['LANG']->csConvObj->crop($GLOBALS['LANG']->charSet,$string,$chars,'...');
|
||
return $GLOBALS['LANG']->csConvObj->crop($GLOBALS['LANG']->charSet, $string, $chars, '...');
|
||
} elseif (is_object($GLOBALS['TSFE'])) {
|
||
return $GLOBALS['TSFE']->csConvObj->crop($GLOBALS['TSFE']->charSet, $string, $chars, '...');
|
||
} else {
|
||
return t3lib_div::fixed_lgd($string, $chars);
|
||
// this case should not happen
|
||
$csConvObj = t3lib_div::makeInstance('t3lib_cs');
|
||
return $csConvObj->crop('iso-8859-1', $string, $chars, '...');
|
||
}
|
||
}
|
||