Replace $GLOBALS['TSFE']->sys_language_content with language aspect
Closed this issue · 0 comments
sypets commented
Occurences
if ($GLOBALS['TSFE']->sys_language_content && $ctrl['transOrigPointerField']) {
Line 40 in 6b27426
$queryBuilder->createNamedParameter((int) ($GLOBALS['TSFE']->sys_language_content), \PDO::PARAM_INT)),
Line 43 in 6b27426
Solution
$GLOBALS['TSFE']->sys_language_content is deprecated in 9
and removed in 10
Can be replaced by language aspect:
$languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');
// (previously known as TSFE->sys_language_content)
$languageAspect->getContentId();