[BUGFIX] Fix permissions of downloaded translations into l10n folder
authorMichael Klapper <development@morphodo.com>
Mon, 21 Nov 2011 15:36:54 +0000 (16:36 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Tue, 20 Dec 2011 06:54:49 +0000 (07:54 +0100)
The downloaded extension translation files should have proper permissions
set after having been unzipped into l10n directory.

Change-Id: I59169bc26cf3a03dc5d9379b5b496ef5b51fd05b
Fixes: #31964
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/6782
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/em/classes/connection/class.tx_em_connection_ter.php

index 834810d..71dc6c2 100644 (file)
@@ -110,12 +110,13 @@ class tx_em_Connection_Ter {
                $l10n = $this->fetchTranslation($extKey, $lang, $mirrorURL);
                if (is_array($l10n)) {
                        $file = PATH_site . 'typo3temp/' . $extKey . '-l10n-' . $lang . '.zip';
-                       $path = 'l10n/' . $lang . '/';
+                       $path = 'l10n/' . $lang;
                        if (!is_dir(PATH_typo3conf . $path)) {
                                t3lib_div::mkdir_deep(PATH_typo3conf, $path);
                        }
                        t3lib_div::writeFile($file, $l10n[0]);
                        if (tx_em_Tools::unzip($file, PATH_typo3conf . $path)) {
+                               t3lib_div::fixPermissions(PATH_typo3conf . $path, TRUE);
                                return TRUE;
                        }
                }