[BUGFIX] Don't download language packs of not loaded extensions 64/55864/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 21 Feb 2018 23:05:49 +0000 (00:05 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 22 Feb 2018 11:28:34 +0000 (12:28 +0100)
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>

index a7203a9..5c073d9 100644 (file)
@@ -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(