From: vincent@cubedesigners.com Date: Mon, 18 Jul 2011 12:06:30 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6131a8b52c50781cc1a1253e40e89931bbfd99a7;p=cubeextranet.git --- diff --git a/inc/ws/DAO/class.ws.dao.book.php b/inc/ws/DAO/class.ws.dao.book.php index ddd323cf5..2671d0ce1 100644 --- a/inc/ws/DAO/class.ws.dao.book.php +++ b/inc/ws/DAO/class.ws.dao.book.php @@ -638,8 +638,8 @@ class wsDAOBook extends commonDAO { $this->makeTextsIndexes($book_id, $index, $textes); $daoDoc->getLinksAndRulers($book_id, $links, $rulers); - $flex = new cubeFlexCompiler('FluidbookDatas', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH); - $flexLight = new cubeFlexCompiler('FluidbookDatasLight', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH); + $flex = new cubeFlexCompiler('FluidbookDatas', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH,10); + $flexLight = new cubeFlexCompiler('FluidbookDatasLight', $compilerDir, 'flash.display.Sprite', explode(';', AS3_SOURCES), MXMLC_PATH,10); $flex->addVariable('links', $links, false, true, 'JSONObject'); $imagesassets = array(); @@ -828,6 +828,11 @@ class wsDAOBook extends commonDAO { public function indexPDF($book, $pages) { $indexPath = WS_BOOKS . '/search/' . $book->book_id; + + if(file_exists($indexPath) && filemtime($indexPath)>$book->composition_update){ + return; + } + Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive()); if (file_exists($indexPath)) { diff --git a/inc/ws/Util/packager/html5/class.ws.packager.html5.php b/inc/ws/Util/packager/html5/class.ws.packager.html5.php index 2d85465fc..a7e157470 100644 --- a/inc/ws/Util/packager/html5/class.ws.packager.html5.php +++ b/inc/ws/Util/packager/html5/class.ws.packager.html5.php @@ -706,7 +706,7 @@ class wsPackagerHTML5 extends wsPackager { public function copyLinkFile($source, $dest, $video=false) { // TODO delete that return; - return; + //return; $origDir = WS_BOOKS . '/working/' . $this->book_id . '/'; $types = array('mp4', 'ogv', 'webm', 'jpg'); if ($video) {