[-] BO : fix #PSCFV-5031

This commit is contained in:
lLefevre
2012-10-17 07:03:30 +00:00
parent 398d345362
commit 34d6021b57
2 changed files with 5 additions and 1 deletions
@@ -276,6 +276,9 @@ class AdminTranslationsControllerCore extends AdminController
else
$file_path = $translation_informations['dir'].$translation_informations['file'];
if (!file_exists($file_path))
throw new PrestaShopException(sprintf(Tools::displayError('This file doesn\'t exists: "%s". Please create this file.'), $file_path));
if ($fd = fopen($file_path, 'w'))
{
// Get value of button save and stay