Commit 651acbb2 authored by Christoph Hofmann's avatar Christoph Hofmann

t3lib_div bug fixed

parent 4ccff397
......@@ -1928,7 +1928,7 @@ class tx_realurl {
// Define the language for the alias
$lang = intval($this->orig_paramKeyValues[$cfg['languageGetVar']]);
if (t3lib_div::inList($cfg['languageExceptionUids'], $lang)) { // Might be excepted (like you should for CJK cases which does not translate to ASCII equivalents)
if (TYPO3\CMS\Core\Utility\GeneralUtility::inList($cfg['languageExceptionUids'], $lang)) { // Might be excepted (like you should for CJK cases which does not translate to ASCII equivalents)
$lang = 0;
}
......@@ -1970,7 +1970,7 @@ class tx_realurl {
$maximumAliasLength = min(255, (int)$cfg['maxLength'] ?: $this->maxLookUpLgd);
if ($cfg['useUniqueCache']) { // If cache is to be used, store the alias in the cache:
$csConvObj = t3lib_div::makeInstance('t3lib_cs');
$csConvObj = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Charset\\CharsetConverter');
/** @var t3lib_cs $csConvObj */
$aliasValue = $row[$cfg['alias_field']];
if ($csConvObj->strlen('utf-8', $aliasValue) > $maximumAliasLength) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment