[BUGFIX] Reuse local mirror.xml.gz when updating translations 00/41700/2
authorXavier Perseguers <xavier@typo3.org>
Sun, 19 Jul 2015 09:23:41 +0000 (11:23 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 19 Jul 2015 09:38:46 +0000 (11:38 +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/41700
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/lang/Classes/Service/TranslationService.php

index 079d8b8..b429244 100644 (file)
@@ -51,7 +51,7 @@ class TranslationService implements \TYPO3\CMS\Core\SingletonInterface {
         * @return void
         */
        public function injectRepositoryHelper(\TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $helper) {
-               $this->mirrorUrl = $helper->getMirrors()->getMirrorUrl();
+               $this->mirrorUrl = $helper->getMirrors(FALSE)->getMirrorUrl();
        }
 
        /**