]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix to bug #570
authortcit <tcit@tcit.fr>
Thu, 27 Mar 2014 23:57:07 +0000 (00:57 +0100)
committertcit <tcit@tcit.fr>
Thu, 27 Mar 2014 23:57:07 +0000 (00:57 +0100)
Forces the download of the data exported file as a poche-export file.

inc/poche/Poche.class.php

index a8cd5871978b85a5778ad9b5299ba0eca4e8e602..aacbec95b743f036772546717a028f6b5a542a7e 100755 (executable)
@@ -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),
         ));