From: vincent@cubedesigners.com Date: Fri, 8 Jul 2011 22:25:50 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c0a79f9b942ff4acbe7bd233f99015f09f216647;p=cubeextranet.git --- 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() {