// Fixed directory creation in translation #PSCFV-8212

This commit is contained in:
Damien Metzger committed 2013-04-29 12:08:45 +02:00
1 parent 3b5591dc55
commit 527f87a691
1 file changed
+3
@@ -2455,6 +2455,9 @@ class AdminTranslationsControllerCore extends AdminController
protected function writeSubjectTranslationFile($sub, $path) protected function writeSubjectTranslationFile($sub, $path)
{ {
if (!Tools::file_exists_cache(dirname(path)))
if (!mkdir(dirname(path), 0700))
throw new PrestaShopException('Directory '.dirname(path).' cannot be created.');
if ($fd = @fopen($path, 'w')) if ($fd = @fopen($path, 'w'))
{ {
$tab = 'LANGMAIL'; $tab = 'LANGMAIL';