Forces the download of the data exported file as a poche-export file.
This commit is contained in:
tcit 2014-03-28 00:57:07 +01:00
parent 04fbe8f5ef
commit b152f2b6ba
1 changed files with 1 additions and 0 deletions

View File

@ -1092,6 +1092,7 @@ class Poche
public function export()
{
$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),
));