Skip to content

Commit

Permalink
[BUGFIX] exit after download and save
Browse files Browse the repository at this point in the history
prevents issues with triggering further code after the download/send
  • Loading branch information
Marc Neuhaus committed Feb 18, 2016
1 parent 0489405 commit 79c3b9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Famelo/PDF/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public function send($filename = NULL) {
$this->setOptionsByViewHelper($generator);
$generator->setFormat($this->format);
$generator->sendPdf($content, $filename);
exit();
}

public function download($filename = NULL) {
Expand All @@ -183,6 +184,7 @@ public function download($filename = NULL) {
$this->setOptionsByViewHelper($generator);
$generator->setFormat($this->format);
$generator->downloadPdf($content, $filename);
exit();
}

public function save($filename) {
Expand Down

0 comments on commit 79c3b9b

Please sign in to comment.