// when adding a translation pack, do not install translations for modules that are not on the disk

This commit is contained in:
fram
2013-11-20 17:35:09 +01:00
parent 0299f3f0cd
commit 64e84ff296
2 changed files with 50 additions and 8 deletions
+2 -2
View File
@@ -809,8 +809,8 @@ class LanguageCore extends ObjectModel
if (file_exists($file))
{
$gz = new Archive_Tar($file, true);
$files_list = $gz->listContent();
if (!$gz->extract(_PS_TRANSLATIONS_DIR_.'../', false))
$files_list = AdminTranslationsController::filterTranslationFiles($gz->listContent());
if (!$gz->extractList(AdminTranslationsController::filesListToPaths($files_list), _PS_TRANSLATIONS_DIR_.'../'))
$errors[] = Tools::displayError('Cannot decompress the translation file for the following language: ').(string)$iso;
// Clear smarty modules cache
Tools::clearCache();