]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 Sep 2013 16:21:37 +0000 (16:21 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 9 Sep 2013 16:21:37 +0000 (16:21 +0000)
inc/ws/DAO/class.ws.dao.book.php

index 2aa2c0aa3f3d05d04c231da195afeee8fe5b8f90..9c4b3796bdc8dad4794ee45dc9576af12e3915ad 100644 (file)
@@ -629,7 +629,7 @@ class wsDAOBook extends commonDAO {
        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
@@ -1301,8 +1301,8 @@ class wsDAOBook extends commonDAO {
                        $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