// Fixed directory creation in translation #PSCFV-8212
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user