[BUGFIX] Don't download language packs of not loaded extensions 60/55860/4
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:14:51 +0000 (12:14 +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/55860
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>

index 3addfcc..685abab 100644 (file)
@@ -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(