From b152f2b6ba73fbb3e4fb8d4c3b0d69fddad8f9d8 Mon Sep 17 00:00:00 2001 From: tcit Date: Fri, 28 Mar 2014 00:57:07 +0100 Subject: Fix to bug #570 Forces the download of the data exported file as a poche-export file. --- inc/poche/Poche.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index a8cd5871..aacbec95 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -1092,6 +1092,7 @@ class Poche public function export() { $entries = $this->store->retrieveAll($this->user->getId()); + header('Content-Disposition: attachment; filename=poche-export'); echo $this->tpl->render('export.twig', array( 'export' => Tools::renderJson($entries), )); -- cgit v1.2.3