diff --git a/.gitignore b/.gitignore
index f90d4b24..ca4dc25a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -119,5 +119,6 @@ modules/product_vouchers/*.csv
modules/labelgenerate/img/*
modules/purchaseguide/img/*
!modules/purchaseguide/img/index.php
+modules/ant_wp/export/*
/.user.ini
diff --git a/modules/ant_wp/AdminAntWp.php b/modules/ant_wp/AdminAntWp.php
index 76ce3ab5..05bcfd5b 100644
--- a/modules/ant_wp/AdminAntWp.php
+++ b/modules/ant_wp/AdminAntWp.php
@@ -1,7 +1,7 @@
excludedProducts = $exclude_ids;
$wp->generate($params, $timer_table, $callStartTime);
$filename = str_replace(' ', '_', $filename);
- $wp->objWriter->save(__DIR__ .'/'.$filename.'.xlsx');
+ $wp->objWriter->save(__DIR__ .'/export/'.$filename.'.xlsx');
$timer_table_formatted = implode('
', $timer_table);
$duplicated_formatted = '';
if (!empty($this->report[self::DUPLICATED_REFS])) {
@@ -500,7 +500,7 @@ class AdminAntWp extends AdminTab
if($debug){
$debug_output = $duplicated_formatted.'
Timers :
'.$timer_table_formatted.'
';
}
- $this->_html .= HelperFormBootstrap::displaySuccess('Génération complète
Télécharger le XLS'.
+ $this->_html .= HelperFormBootstrap::displaySuccess('Génération complète
Télécharger le XLS'.
'
Produits trouvés : '.$product_found.'
Produits nouveaux : '.$new_products. $debug_output);
} else {
$this->_html .= HelperFormBootstrap::displayErrors($this->l('Veuillez charger un fichier correct !'));
diff --git a/modules/ant_wp/export/index.php b/modules/ant_wp/export/index.php
new file mode 100644
index 00000000..b559f985
--- /dev/null
+++ b/modules/ant_wp/export/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 7233 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/modules/ant_wp/index.php b/modules/ant_wp/index.php
new file mode 100644
index 00000000..b559f985
--- /dev/null
+++ b/modules/ant_wp/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision: 7233 $
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file