Merge pull request #1004 from djfm/bootstrap

// when adding a translation pack, do not install translations for modules that are not on the disk
This commit is contained in:
Damien Metzger
2013-11-26 01:31:24 -08:00
2 changed files with 50 additions and 8 deletions
+2 -2
View File
@@ -838,8 +838,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();