LocalizationUtility missing Import for TYPO3\CMS\Core\Site\Entity\SiteLanguage
\SJBR\StaticInfoTables\Utility\LocalizationUtility::setLanguageKeys is using
$siteLanguage instanceof SiteLanguage
as if-condition in line 278 but the Class "SiteLanguage" (which refers to TYPO3\CMS\Core\Site\Entity\SiteLanguage) isnt imported.
Therefore the instanceof always returns false and the if-clause always goes on.
In the result of this bug you always get localizations in the standard language of your page configuration.
Extension Version: 6.7.4
[BUGFIX] LocalizationUtility missing import for SiteLanguage in TYPO3 9
Test for the existence of TYPO3\CMS\Core\Site\Entity\SiteLanguage
which exists only with TYPO3 9 LTS and test for instance of class
with full namespace.
Tested-by: Stanislas Rolland <firstname.lastname@example.org>
Reviewed-by: Stanislas Rolland <email@example.com>
#3 Updated by Gerrit Code Review 6 months ago
- Status changed from New to Under Review
Patch set 1 for branch master of project TYPO3CMS/Extensions/static_info_tables has been pushed to the review server.
It is available at https://review.typo3.org/c/TYPO3CMS/Extensions/static_info_tables/+/60795