public function setSettings($book_id, $settings) {\r
$book = $this->selectById($book_id);\r
$parametres = $book->parametres;\r
- $new =$settings;\r
+ $new = $settings;\r
foreach ($new as $k => $v) {\r
if ($k == '_empty_') {\r
continue;\r
$flex->addFont(WS_FILES . '/fonts/FluidbookMultilang.ttf', 'MultilangFont', $chars);\r
$flex->addVariable('langNames', $langNames, false, true, 'JSONObject');\r
$flex->addVariable('countryNames', $countryNames, false, true, 'JSONObject');\r
- $flex->addVariable('lang', $book->lang);\r
}\r
+ $flexLight->addVariable('lang', $book->lang);\r
\r
// Basket\r
if ($book->parametres->basket) {\r