[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)
committerTolleiv Nietsch <info@tolleiv.de>
Sun, 15 Jan 2012 10:19:11 +0000 (11:19 +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/6781
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Joh. Feustel
Tested-by: Joh. Feustel
Reviewed-by: Philipp Gampe
Reviewed-by: Oliver Klee
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
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;
                        }
                }