From 6079ae32a1b6bbd55cdc628d5240e3121313b276 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 17 Oct 2013 18:53:11 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.services.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index 5b374ce5b..302331732 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -611,6 +611,10 @@ class wsServices extends cubeFlashGateway { $resolution = $this->callArgs[2]; $local = (isset($this->callArgs[3])) ? $this->callArgs[3] : null; + if ($id == 4) { + $resolution = 150; + } + $this->outputXML = false; header('Content-type: application/json'); @@ -688,7 +692,7 @@ class wsServices extends cubeFlashGateway { $traductions[$r->lang_id] = json_decode($r->traductions); } - $d = array('id' => $id, 'ns' => $ns, 'langs' => $langs, 'langnames' => $langsnames, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures, 'traductions' => $traductions, 'contents' => $contents); + $d = array('id' => $id, 'res' => $resolution, 'ns' => $ns, 'langs' => $langs, 'langnames' => $langsnames, 'time' => $version, 'datas' => $composition, 'couvertures' => $couvertures, 'traductions' => $traductions, 'contents' => $contents); $d = array_merge($d, $this->_getManifest($publications, '/fluidbook/collections/versions/' . $id . '/' . $version . '/' . $os, $books, $resolution)); $dao = new wsDAOCollection($core->con); -- 2.39.5