Fixed bug #17692: Updating translations does not work anymore
authorsteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Thu, 24 Feb 2011 22:48:35 +0000 (22:48 +0000)
committersteffenk <steffenk@709f56b5-9817-0410-a4d7-c38de5d9e867>
Thu, 24 Feb 2011 22:48:35 +0000 (22:48 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10627 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/em/classes/translations/class.tx_em_translations.php

index 92f61b2..33dcdc9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-02-24  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #17692: Updating translations does not work anymore
        * Fixed bug #17758: EM: After update repository the info labels are not updated
        * Fixed bug #13309 Text on "Settings" tab needs more space
        * Fixed bug #13310: PHP Warning "array_merge(): Argument #2 is not an array" in class.tx_em_settings.php
index 48c7e6c..fac084e 100644 (file)
@@ -101,9 +101,10 @@ class tx_em_Translations {
                        }
                        t3lib_div::writeFile($file, $l10n[0]);
                                // this prevent first update having errors
-                       t3lib_div::rmdir(PATH_typo3conf . $path, TRUE);
+                       t3lib_div::rmdir(PATH_typo3conf . $path . $extKey, TRUE);
+
                        if (tx_em_Tools::unzip($file, PATH_typo3conf . $path)) {
-                               return true;
+                               return TRUE;
                        } else {
                                return $GLOBALS['LANG']->getLL('translation_unpacking_failed');
                        }
@@ -127,7 +128,7 @@ class tx_em_Translations {
                        'CSH' => $docHeaderButtons['csh'],
                        'FUNC_MENU' => $this->parentObject->getFuncMenu(),
                );
-
+               $content = '';
 
                $incoming = t3lib_div::_POST('SET');
                if (isset($incoming['selectedLanguages']) && is_array($incoming['selectedLanguages'])) {