// remove is_writable from AdminTranslations

This commit is contained in:
gRoussac
2013-03-25 14:17:05 +01:00
parent 54103a1a8f
commit 63c8fc41dd
@@ -719,7 +719,7 @@ class AdminTranslationsControllerCore extends AdminController
@stream_context_create(array('http' => array('method' => 'GET', 'timeout' => 5)))))
{
$file = _PS_TRANSLATIONS_DIR_.$arr_import_lang[0].'.gzip';
if (is_writable(dirname($file)) && (bool)file_put_contents($file, $content))
if ((bool)file_put_contents($file, $content))
{
$gz = new Archive_Tar($file, true);
$files_list = $gz->listContent();