}\r
\r
protected function writeConfig() {\r
- $res = 'DATAS=' . json_encode($this->book->parametres->toStandardObject()) . ';' . "\n";\r
- $res.= 'THEME=' . json_encode($this->theme->parametres->toStandardObject()) . ';' . "\n";\r
- $res.= 'ID=' . $this->book->book_id . ';' . "\n";\r
-\r
- return $res;\r
+ $config = cubeObject::merge($this->book->parametres->toStandardObject(), $this->theme->parametres->toStandardObject());\r
+ $config->id = $this->book->book_id;\r
+ return 'DATAS=' . json_encode($config) . ';';\r
}\r
\r
protected function writeFonts() {\r