// Fixed directory creation in translation #PSCFV-8212

This commit is contained in:
Damien Metzger
2013-04-29 12:08:45 +02:00
parent 3b5591dc55
commit 527f87a691
@@ -2455,6 +2455,9 @@ class AdminTranslationsControllerCore extends AdminController
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'))
{
$tab = 'LANGMAIL';