From 6858170ee7c31684ba4c1729d684b1f1ca0a9b4b Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 26 Apr 2011 18:18:09 +0000 Subject: [PATCH] --- inc/ws/DAO/class.ws.dao.book.php | 7 +++++++ inc/ws/DAO/class.ws.dao.document.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/inc/ws/DAO/class.ws.dao.book.php b/inc/ws/DAO/class.ws.dao.book.php index 19b612440..b18e87f68 100644 --- a/inc/ws/DAO/class.ws.dao.book.php +++ b/inc/ws/DAO/class.ws.dao.book.php @@ -624,6 +624,13 @@ class wsDAOBook extends commonDAO { $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->addVariable('links', $links , false, true, 'JSONObject'); + + foreach($links as $link) { + if ($link['type'] == 15) { + $flex->addBitmap($workingDir . '/' . $link['to'], 'link_datas_' . $link['id']); + } + } + $flex->addVariable('signature', $exportSignature, false, true, 'JSONObject'); $flexLight->addVariable('datas', $book->parametres->toStandardObject(), false, true, 'JSONObject'); $flexLight->addVariable('id', $book_id, false, true, 'uint'); diff --git a/inc/ws/DAO/class.ws.dao.document.php b/inc/ws/DAO/class.ws.dao.document.php index 82096b7e1..8ac704cf9 100644 --- a/inc/ws/DAO/class.ws.dao.document.php +++ b/inc/ws/DAO/class.ws.dao.document.php @@ -253,7 +253,6 @@ class wsDAODocument extends commonDAO { $c->rulers = json_encode(array()); $c->insert(); - fb($c->getInsert()); } $c = $this->con->openCursor('books'); @@ -298,6 +297,7 @@ class wsDAODocument extends commonDAO { foreach($l as $link) { $link = (array)$link; $link['page'] = $p; + $link['id'] = $i; $links[] = $link; } } -- 2.39.5