Skip to content

Commit

Permalink
[TASK] Rewrite translation synchronisation for profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-fr committed Oct 24, 2024
1 parent 425185b commit a74d87d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/EventListener/SyncChangesToTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\QueryBuilder;
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\CMS\Core\Utility\GeneralUtility;

final class SyncChangesToTranslations
Expand All @@ -24,7 +23,7 @@ final class SyncChangesToTranslations
public function __construct(
ProfileTranslator $profileTranslator
) {
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByIdentifier('hnee');
$site = $GLOBALS['TYPO3_REQUEST']->getAttribute('site');
$this->defaultLanguage = $site->getDefaultLanguage()->getLanguageId();
$this->allowedLanguages = $profileTranslator->getAllowedLanguageIds();
}
Expand Down

0 comments on commit a74d87d

Please sign in to comment.