[-] BO : fix #PSCFV-5031
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17885 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user