aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-03-28 00:57:07 +0100
committertcit <tcit@tcit.fr>2014-03-28 00:57:07 +0100
commitb152f2b6ba73fbb3e4fb8d4c3b0d69fddad8f9d8 (patch)
tree740fcc118aa4ebf3adcef2af86d3ac73617c3ca7 /inc/poche
parent04fbe8f5efdf7fda0505c5aab9353d2cc61507ed (diff)
downloadwallabag-b152f2b6ba73fbb3e4fb8d4c3b0d69fddad8f9d8.tar.gz
wallabag-b152f2b6ba73fbb3e4fb8d4c3b0d69fddad8f9d8.tar.zst
wallabag-b152f2b6ba73fbb3e4fb8d4c3b0d69fddad8f9d8.zip
Fix to bug #570
Forces the download of the data exported file as a poche-export file.
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Poche.class.php1
1 files changed, 1 insertions, 0 deletions
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
1092 public function export() 1092 public function export()
1093 { 1093 {
1094 $entries = $this->store->retrieveAll($this->user->getId()); 1094 $entries = $this->store->retrieveAll($this->user->getId());
1095 header('Content-Disposition: attachment; filename=poche-export');
1095 echo $this->tpl->render('export.twig', array( 1096 echo $this->tpl->render('export.twig', array(
1096 'export' => Tools::renderJson($entries), 1097 'export' => Tools::renderJson($entries),
1097 )); 1098 ));