[BUGFIX] Reuse local mirror.xml.gz when updating translations 22/41722/2
authorXavier Perseguers <xavier@typo3.org>
Mon, 20 Jul 2015 09:56:15 +0000 (11:56 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Mon, 20 Jul 2015 11:10:00 +0000 (13:10 +0200)
When updating translation packages, the local mirrors.xml.gz should be
reused instead of being fetched again and again.

The list of mirrors virtually never changes and is already updated when
fetching the list of TER extensions in Extension Manager. It should thus
be assumed that the local content is just correct and may be used safely.

Change-Id: I5863762061b2a55d2439a92d53fdbf02bcd6e124
Resolves: #68364
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/41722
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/lang/Classes/Service/UpdateTranslationService.php

index 5eb0a46..5e5ce42 100644 (file)
@@ -183,7 +183,7 @@ class UpdateTranslationService {
         * @return string
         */
        protected function getMirrorUrl($extensionKey) {
-               $mirrorUrl = $this->repositoryHelper->getMirrors()->getMirrorUrl();
+               $mirrorUrl = $this->repositoryHelper->getMirrors(FALSE)->getMirrorUrl();
 
                $mirrorUrl = $this->emitPostProcessMirrorUrlSignal($extensionKey, $mirrorUrl);