From 9bc20c5dbd08a9b48feea9c6a31ad865ced5e353 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Wed, 25 Nov 2009 20:16:26 +0000
Subject: [PATCH] Fix: Backup must not be inside a "temp" directory or it is
 lost after a "no data loss" purge.

---
 htdocs/admin/tools/export.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php
index 8a4cbd53817..7e4897d1cba 100644
--- a/htdocs/admin/tools/export.php
+++ b/htdocs/admin/tools/export.php
@@ -294,7 +294,7 @@ if ($what)
 	}
 }
 
-$result=$formfile->show_documents('systemtools','',$conf->admin->dir_temp,$_SERVER['PHP_SELF'],0,1,'',array(),0,0,54,0,'',$langs->trans("PreviousDumpFiles"));
+$result=$formfile->show_documents('systemtools','backup',$conf->admin->dir_output.'/backup',$_SERVER['PHP_SELF'],0,1,'',array(),0,0,54,0,'',$langs->trans("PreviousDumpFiles"));
 
 if ($result == 0)
 {
-- 
GitLab