From e3e38475f7fb7560f2ac26befa8aad62ce2528cb Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 17 Nov 2016 17:35:11 +0000 Subject: [PATCH] #741 --- inc/ws/Controlleur/class.ws.services.php | 3 --- 1 file changed, 3 deletions(-) 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)) { -- 2.39.5