From a46a4ea7c1a7e8b03a6a6820e0aaad72f8c22c12 Mon Sep 17 00:00:00 2001
From: Florian Azizian <florian.azizian@maarch.org>
Date: Tue, 31 Mar 2015 12:19:47 +0000
Subject: [PATCH] =?UTF-8?q?FIX=20#2109=20Mettre=20le=20path=20=C3=A0=20la?=
 =?UTF-8?q?=20place=20de=20l'url?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 maarch_entreprise/trunk/export.php | 2 +-
 maarch_entreprise/trunk/print.php  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/maarch_entreprise/trunk/export.php b/maarch_entreprise/trunk/export.php
index 6e5ff7a279f..ca0ce72242c 100755
--- a/maarch_entreprise/trunk/export.php
+++ b/maarch_entreprise/trunk/export.php
@@ -19,7 +19,7 @@ if (!empty($_SESSION['error'])) {
     header('Content-Type: application/vnd.ms-excel');
     header('Content-Disposition: inline; filename=export_maarch.csv;');
     //header('Content-Transfer-Encoding: binary');
-    readfile($_SESSION['config']['businessappurl'] . 'tmp/' . $_SESSION['export']['filename']);
+    readfile($_SESSION['config']['tmppath'] . $_SESSION['export']['filename']);
     unlink($_SESSION['config']['tmppath'] . $_SESSION['export']['filename']);
     exit;
 }
diff --git a/maarch_entreprise/trunk/print.php b/maarch_entreprise/trunk/print.php
index da361ae6ecd..322deb9ec8c 100644
--- a/maarch_entreprise/trunk/print.php
+++ b/maarch_entreprise/trunk/print.php
@@ -30,7 +30,7 @@ if (!empty($_SESSION['error'])) {
 		header('Content-Type: application/pdf');
 		header('Content-Disposition: inline; filename=print_maarch.pdf;');
 		//header('Content-Transfer-Encoding: binary');
-		readfile($_SESSION['config']['businessappurl'] . 'tmp/' . $_SESSION['print']['filename']);
+		readfile($_SESSION['config']['tmppath'] . $_SESSION['print']['filename']);
 		unlink($_SESSION['config']['tmppath'] . $_SESSION['print']['filename']);
 	} else {
 		echo _NO_DOC_OR_NO_RIGHTS;
-- 
GitLab