forked from wallabag/wallabag
fix pdf being saved at root, now in cache/ folder
This commit is contained in:
@ -260,7 +260,7 @@ class WallabagPDF extends WallabagEbooks
|
|||||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||||
|
|
||||||
|
|
||||||
$pdf->Output($this->bookFileName . '.pdf', 'FD');
|
$pdf->Output('cache/' . $this->bookFileName . '.pdf', 'FD');
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
Tools::logm('TCPDF has encountered an error : '.$e->getMessage());
|
Tools::logm('TCPDF has encountered an error : '.$e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user