Merge pull request #824 from Prestaworks/patch-14
[-] BO : Fixes issue where path is not printed when error with email template saves occur.
This commit is contained in:
commit
cd8af9ae67
1 file changed
+1
-1
@@ -1464,7 +1464,7 @@ class AdminTranslationsControllerCore extends AdminController
|
|||||||
if ($module_name)
|
if ($module_name)
|
||||||
$path = str_replace('{module}', $module_name, $path);
|
$path = str_replace('{module}', $module_name, $path);
|
||||||
if (!file_exists($path) && !mkdir($path, 0777, true))
|
if (!file_exists($path) && !mkdir($path, 0777, true))
|
||||||
throw new PrestaShopException(sprintf(Tools::displayError('Directory "%s" cannot be created'), dirname($file_path)));
|
throw new PrestaShopException(sprintf(Tools::displayError('Directory "%s" cannot be created'), dirname($path)));
|
||||||
file_put_contents($path.$mail_name.'.'.$type_content, $content);
|
file_put_contents($path.$mail_name.'.'.$type_content, $content);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user