From: Christian Kuhn Date: Wed, 21 Feb 2018 23:05:49 +0000 (+0100) Subject: [BUGFIX] Don't download language packs of not loaded extensions X-Git-Tag: v9.2.0~438 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/61485b714f775d070162d39664af30b9fa895685?hp=94a5a0f9f45b0640d4f3fd6c1f4ff2481606a921 [BUGFIX] Don't download language packs of not loaded extensions The backend language module struggles with downloading language packs of existing, but not loaded extensions and fetchess old (non core version specific) packs for core extensions. This is hard to solve on a bugfix level for v7 and v8, and in general it does not make much sense to have language packs of not loaded extensions lying around in typo3conf/l10n. The patch ignores fetching of language packs for not loaded extensions, it easily applies to all maintained core versions. Change-Id: I9ad885012a572368f7946f1027d870ee09550034 Resolves: #83406 Releases: master, 8.7, 7.6 Reviewed-on: https://review.typo3.org/55860 Tested-by: TYPO3com Reviewed-by: Tymoteusz Motylewski Tested-by: Tymoteusz Motylewski Reviewed-by: Wouter Wolters Reviewed-by: Mathias Schreiber Tested-by: Mathias Schreiber Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- diff --git a/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php b/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php index 3addfcc057bc..685abab78b67 100644 --- a/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php +++ b/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php @@ -67,6 +67,9 @@ class ExtensionRepository if (empty($this->extensions)) { $extensions = $this->listUtility->getAvailableAndInstalledExtensionsWithAdditionalInformation(); foreach ($extensions as $entry) { + if (empty($entry['installed']) || $entry['installed'] !== true) { + continue; + } /** @var $extension \TYPO3\CMS\Lang\Domain\Model\Extension */ $extension = $this->objectManager->get( Extension::class,