From: vincent@cubedesigners.com Date: Tue, 12 Sep 2017 12:32:03 +0000 (+0000) Subject: fix #1657 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d1865820eec1083c119d923f6e794ba851427b28;p=cubeextranet.git fix #1657 @2 --- diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index 2707276e1..3ae59698d 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -406,15 +406,14 @@ class wsServices extends cubeFlashGateway { $daoBook->compilePDF($book, $pages); } - if ($book->parametres->pdfReplace != '' && file_exists($normal)) { - $this->xml->addChild('normal', $normal); + if ($book->parametres->pdfReplace == '' && file_exists($normal)) { return $normal; } $res = WS_BOOKS . '/final/' . $book->book_id . '/data/' . $book->parametres->pdfName; if (!file_exists($res)) { return $normal; } - return $normal; + return $res; } public function e() {