From d0b63ba720b645b04406e99cd94038f2210fb31a Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Thu, 22 Feb 2018 00:05:49 +0100 Subject: [PATCH] [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/55864 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Michael Stucki <michael.stucki@typo3.org> Tested-by: Michael Stucki <michael.stucki@typo3.org> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../lang/Classes/Domain/Repository/ExtensionRepository.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php b/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php index a7203a94ad0d..5c073d97ca36 100644 --- a/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php +++ b/typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php @@ -62,6 +62,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( \TYPO3\CMS\Lang\Domain\Model\Extension::class, -- GitLab