]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Final Fix of #570
authortcit <tcit@tcit.fr>
Fri, 28 Mar 2014 15:53:06 +0000 (16:53 +0100)
committertcit <tcit@tcit.fr>
Fri, 28 Mar 2014 15:53:06 +0000 (16:53 +0100)
Adds a date information to the exported data file.

inc/poche/Poche.class.php

index aacbec95b743f036772546717a028f6b5a542a7e..7d9faed14e386d04391891d3ea3c8ee3890bfe56 100755 (executable)
@@ -1091,8 +1091,10 @@ class Poche
      */
     public function export()
     {
+               $filename = "wallabag-export-".$this->user->getId()."-".date("Y-m-d").".json";
+               header('Content-Disposition: attachment; filename='.$filename);
+               
         $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),
         ));