From c0a79f9b942ff4acbe7bd233f99015f09f216647 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 8 Jul 2011 22:25:50 +0000 Subject: [PATCH] --- inc/ws/Util/packager/class.ws.packager.html5.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/inc/ws/Util/packager/class.ws.packager.html5.php b/inc/ws/Util/packager/class.ws.packager.html5.php index 8b9f04207..f27754d5e 100644 --- a/inc/ws/Util/packager/class.ws.packager.html5.php +++ b/inc/ws/Util/packager/class.ws.packager.html5.php @@ -71,11 +71,9 @@ class wsPackagerHTML5 extends wsPackager { } protected function writeConfig() { - $res = 'DATAS=' . json_encode($this->book->parametres->toStandardObject()) . ';' . "\n"; - $res.= 'THEME=' . json_encode($this->theme->parametres->toStandardObject()) . ';' . "\n"; - $res.= 'ID=' . $this->book->book_id . ';' . "\n"; - - return $res; + $config = cubeObject::merge($this->book->parametres->toStandardObject(), $this->theme->parametres->toStandardObject()); + $config->id = $this->book->book_id; + return 'DATAS=' . json_encode($config) . ';'; } protected function writeFonts() { -- 2.39.5