From ad697686c00432964528226588a8cbea909c9e36 Mon Sep 17 00:00:00 2001 From: tcit Date: Fri, 28 Mar 2014 16:53:06 +0100 Subject: [PATCH] Final Fix of #570 Adds a date information to the exported data file. --- inc/poche/Poche.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index aacbec9..7d9faed 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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), ));