From: vincent@cubedesigners.com Date: Fri, 27 Jun 2014 15:22:19 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5570cb899427c143d7618987357ecdcd4dd60b72;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index 5cba7c530..d70209796 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -1086,7 +1086,6 @@ class wsAjax extends cubeAjax { $dao = new wsDAOCollection($core->con); $collection = $dao->selectById($id); - $c = $core->con->openCursor('book_collection_compile'); $c->collection_id = $id; $c->compile_date = $time; diff --git a/inc/ws/Util/html5/app/class.ws.html5.app.compiler.php b/inc/ws/Util/html5/app/class.ws.html5.app.compiler.php index 92c01c893..518e74a68 100644 --- a/inc/ws/Util/html5/app/class.ws.html5.app.compiler.php +++ b/inc/ws/Util/html5/app/class.ws.html5.app.compiler.php @@ -43,7 +43,7 @@ class wsHTML5AppCompiler { $dir = WS_COLLECTIONS . '/versions/' . $this->collectionId . '/' . $time . '/'; - $books = $this->getPublicationsIds(); + $books = $this->getPublicationsIds(true); $exporter = new wsExporter(); foreach ($os as $o) { @@ -61,10 +61,13 @@ class wsHTML5AppCompiler { return $time; } - protected function getPublicationsIds() { + protected function getPublicationsIds($onlyonline = false) { $books = array(); foreach ($this->collection->datas as $group) { foreach ($group['publications'] as $p) { + if ($onlyonline && (!isset($p['online']) || !$p['online'])) { + continue; + } $books[] = $p['id']; } }