diff options
Diffstat (limited to 'inc/poche')
-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 | )); |