From c8724751588c551f561622e7ee0c25c25f6e3070 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 27 Jun 2014 12:55:33 +0000 Subject: [PATCH] --- inc/ws/Util/html5/app/class.ws.html5.app.compiler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5