diff options
author | tcit <tcit@tcit.fr> | 2014-03-28 16:53:06 +0100 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-03-28 16:53:06 +0100 |
commit | ad697686c00432964528226588a8cbea909c9e36 (patch) | |
tree | 6f252f41d4f9be2ac3e030724ebc9842255bdf02 | |
parent | cdada41505e77722f86334844d557128e6f4af4f (diff) | |
download | wallabag-ad697686c00432964528226588a8cbea909c9e36.tar.gz wallabag-ad697686c00432964528226588a8cbea909c9e36.tar.zst wallabag-ad697686c00432964528226588a8cbea909c9e36.zip |
Final Fix of #570
Adds a date information to the exported data file.
-rwxr-xr-x | inc/poche/Poche.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index aacbec95..7d9faed1 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -1091,8 +1091,10 @@ class Poche | |||
1091 | */ | 1091 | */ |
1092 | public function export() | 1092 | public function export() |
1093 | { | 1093 | { |
1094 | $filename = "wallabag-export-".$this->user->getId()."-".date("Y-m-d").".json"; | ||
1095 | header('Content-Disposition: attachment; filename='.$filename); | ||
1096 | |||
1094 | $entries = $this->store->retrieveAll($this->user->getId()); | 1097 | $entries = $this->store->retrieveAll($this->user->getId()); |
1095 | header('Content-Disposition: attachment; filename=poche-export'); | ||
1096 | echo $this->tpl->render('export.twig', array( | 1098 | echo $this->tpl->render('export.twig', array( |
1097 | 'export' => Tools::renderJson($entries), | 1099 | 'export' => Tools::renderJson($entries), |
1098 | )); | 1100 | )); |