diff --git a/core/core.php b/core/core.php index 2e345753..d4470175 100644 --- a/core/core.php +++ b/core/core.php @@ -359,7 +359,7 @@ class common // Stocker le cookie de langue pour l'éditeur de texte - setcookie('ZWII_UI', self::$i18nUI, time() + 3600, helper::baseUrl(false, false), '', helper::isHttps(), true); + setcookie('ZWII_UI', self::$i18nUI, time() + 3600, helper::baseUrl(false, false), '', false, false); // Utilisateur connecté if ($this->user === []) { diff --git a/core/module/install/install.php b/core/module/install/install.php index 4912b048..4caa793e 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -55,7 +55,7 @@ class install extends common if ($this->isPost()) { $lang = $this->getInput('installLanguage'); // Place le cookie pour la suite de l'installation - setcookie('ZWII_UI', $lang, time() + 3600, helper::baseUrl(false, false), '', helper::isHttps(), true); + setcookie('ZWII_UI', $lang, time() + 3600, helper::baseUrl(false, false), '', false, false); // Valeurs en sortie $this->addOutput([ diff --git a/core/vendor/tinymce/init.js b/core/vendor/tinymce/init.js index e7d1f378..836f3130 100755 --- a/core/vendor/tinymce/init.js +++ b/core/vendor/tinymce/init.js @@ -10,7 +10,7 @@ if (typeof (privateKey) == 'undefined') { var privateKey = null; }; - +console.log(getCookie('ZWII_UI')); tinymce.init({ // Classe où appliquer l'éditeur selector: ".editorWysiwyg", @@ -331,6 +331,7 @@ function getCookie(name) { for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); + if (c.indexOf(nameEQ) == 0) console.log(c.substring(nameEQ.length, c.length)); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null;