From fa88a0bd935f6070c5a9137cd1afc66fb0f1302c Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Oct 2013 20:54:52 +0800 Subject: [PATCH] Update AdminTranslationsController.php Fixes issue where path is not printed when error with email template saves occur. --- controllers/admin/AdminTranslationsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index 149e88293..9bc66261c 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -1464,7 +1464,7 @@ class AdminTranslationsControllerCore extends AdminController if ($module_name) $path = str_replace('{module}', $module_name, $path); 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); } else