From: vincent@cubedesigners.com Date: Thu, 17 Nov 2016 17:35:11 +0000 (+0000) Subject: #741 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e3e38475f7fb7560f2ac26befa8aad62ce2528cb;p=cubeextranet.git #741 --- diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index e164017fd..85d96928a 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -194,15 +194,12 @@ class wsServices extends cubeFlashGateway { } if (!isset($cover)) { - $pages = $dao->getPagesOfBook($this->args['id']); $dir = wsDocument::getDir($pages[1]['document_id']); $cover = $dir . '/html/t150-' . $pages[1]['document_page'] . '.jpg'; if (!file_exists($cover)) { $cover = $dir . '/p' . $pages[1]['document_page'] . '.jpg'; } - - $i = WS_FILES . '/cover/' . $this->args['id'] . '.jpg'; if (!file_exists($i) || filemtime(__FILE__) > filemtime($i) || filemtime($cover) > filemtime($i)) {