Actions
Bug #91345
closedExtbase LocalizationUtility generates error if site language is null
Start date:
2020-05-08
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The extbase localization utility (TYPO3\CMS\Extbase\Utility\LocalizationUtility) generates an error if the site language is null.
Line 196: $siteLanguage = self::getCurrentSiteLanguage();
Sometimes site language will be null here.
Line 199: $languageKeys['languageKey'] = $siteLanguage->getTypo3Language();
function call on null will generate an exception.
So line 199 should be:
if ($siteLanguage) {
$languageKeys['languageKey'] = $siteLanguage->getTypo3Language();
}
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64508
Updated by Oliver Bartsch over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7971bc94b91a369cb170af2a2a0fb1530553bdc1.
Actions