From: vincent@cubedesigners.com Date: Fri, 27 Jun 2014 12:55:33 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c8724751588c551f561622e7ee0c25c25f6e3070;p=cubeextranet.git --- 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 4c69abe8d..92c01c893 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 @@ -245,7 +245,7 @@ class wsHTML5AppCompiler { public function getPublishedVersionPath($os, $version) { global $core; - $r = $core->con->select('SELECT * FROM book_collection_compile WHERE collection_id=\'' . $this->collectionId . '\''); + $r = $core->con->select('SELECT * FROM book_collection_compile WHERE collection_id=\'' . $this->collectionId . '\' ORDER BY compile_date DESC'); while ($r->fetch()) { $v = $r->{"online_" . $os}; if (!$v) { @@ -254,6 +254,7 @@ class wsHTML5AppCompiler { if (version_compare($v, $version, '>')) { continue; } + return WS_COLLECTIONS . '/versions/' . $this->collectionId . '/' . $r->compile_date . '/' . $os . '/'; } return false;