diff --git a/typo3/sysext/em/classes/connection/class.tx_em_connection_ter.php b/typo3/sysext/em/classes/connection/class.tx_em_connection_ter.php index 47b108317210a96d445e1ed64107cc7acd395347..1614cb58c50575913d394fc511338891d18c3c0d 100644 --- a/typo3/sysext/em/classes/connection/class.tx_em_connection_ter.php +++ b/typo3/sysext/em/classes/connection/class.tx_em_connection_ter.php @@ -109,12 +109,15 @@ class tx_em_Connection_Ter { function updateTranslation($extKey, $lang, $mirrorURL) { $l10n = $this->fetchTranslation($extKey, $lang, $mirrorURL); if (is_array($l10n)) { - $file = PATH_site . 'typo3temp/' . $extKey . '-l10n-' . $lang . '.zip'; - $path = 'l10n/' . $lang; + $file = PATH_site . 'typo3temp' . DIRECTORY_SEPARATOR . $extKey . '-l10n-' . $lang . '.zip'; + $path = 'l10n' . DIRECTORY_SEPARATOR . $lang . DIRECTORY_SEPARATOR; if (!is_dir(PATH_typo3conf . $path)) { t3lib_div::mkdir_deep(PATH_typo3conf, $path); } t3lib_div::writeFile($file, $l10n[0]); + + t3lib_div::rmdir(PATH_typo3conf . $path . $extKey, TRUE); + if (tx_em_Tools::unzip($file, PATH_typo3conf . $path)) { t3lib_div::fixPermissions(PATH_typo3conf . $path, TRUE); return TRUE;