From: tcit Date: Fri, 28 Mar 2014 15:53:06 +0000 (+0100) Subject: Final Fix of #570 X-Git-Tag: 1.6.0^2~12 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ad697686c00432964528226588a8cbea909c9e36;p=github%2Fwallabag%2Fwallabag.git Final Fix of #570 Adds a date information to the exported data file. --- 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 */ 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), ));