From: vincent@cubedesigners.com Date: Wed, 16 Feb 2022 14:36:04 +0000 (+0000) Subject: wait #5101 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=50b77ee1de03ee97a8174968235c5a98a8014b31;p=cubeextranet.git wait #5101 @0:05 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 9083ffd61..380bead5c 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1769,8 +1769,11 @@ height="0" width="0" style="display:none;visibility:hidden"> } $res = wsUtil::compilePDF($this->book, $this->pages, $this); + if (!$this->config->pdfName) { + $this->config->pdfName = 'document.pdf'; + } if ($res !== false) { - $this->vdir->copy($res, 'data/' . $this->book->parametres->pdfName); + $this->vdir->copy($res, 'data/' . $this->config->pdfName); } $this->log('Print written'); return '';