From: tcit Date: Thu, 27 Mar 2014 23:57:07 +0000 (+0100) Subject: Fix to bug #570 X-Git-Tag: 1.6.0^2~14 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b152f2b6ba73fbb3e4fb8d4c3b0d69fddad8f9d8;hp=04fbe8f5efdf7fda0505c5aab9353d2cc61507ed;p=github%2Fwallabag%2Fwallabag.git Fix to bug #570 Forces the download of the data exported file as a poche-export file. --- 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), ));