mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-12 16:58:37 +00:00
Fix to bug #570
Forces the download of the data exported file as a poche-export file.
This commit is contained in:
parent
04fbe8f5ef
commit
b152f2b6ba
1 changed files with 1 additions and 0 deletions
|
@ -1092,6 +1092,7 @@ class Poche
|
||||||
public function export()
|
public function export()
|
||||||
{
|
{
|
||||||
$entries = $this->store->retrieveAll($this->user->getId());
|
$entries = $this->store->retrieveAll($this->user->getId());
|
||||||
|
header('Content-Disposition: attachment; filename=poche-export');
|
||||||
echo $this->tpl->render('export.twig', array(
|
echo $this->tpl->render('export.twig', array(
|
||||||
'export' => Tools::renderJson($entries),
|
'export' => Tools::renderJson($entries),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue