]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 27 Jun 2014 15:22:19 +0000 (15:22 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 27 Jun 2014 15:22:19 +0000 (15:22 +0000)
inc/ws/Controlleur/class.ws.ajax.php
inc/ws/Util/html5/app/class.ws.html5.app.compiler.php

index 5cba7c53002b002f636b907f1cb4af5bec8b345d..d70209796f711ec5de454de33ec23af7ef11367c 100644 (file)
@@ -1086,7 +1086,6 @@ class wsAjax extends cubeAjax {
                $dao = new wsDAOCollection($core->con);\r
                $collection = $dao->selectById($id);\r
 \r
-\r
                $c = $core->con->openCursor('book_collection_compile');\r
                $c->collection_id = $id;\r
                $c->compile_date = $time;\r
index 92c01c8930c71bd3030466b669b6bdad23e3e983..518e74a68792f7776886ad429c91d90201e0b089 100644 (file)
@@ -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'];
                        }
                }