diff --git a/core/module/install/install.php b/core/module/install/install.php index 21a07cdc..16016d06 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -54,16 +54,17 @@ class install extends common else { // Soumission du formulaire 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); // Valeurs en sortie $this->addOutput([ - 'redirect' => helper::baseUrl() . 'install/postinstall/' . $lang + 'redirect' => helper::baseUrl() . 'install/postinstall/' . $this->getInput('installLanguage') ]); } } + //Nettoyage anciennes installations + helper::deleteCookie('ZWII_CONTENT'); + helper::deleteCookie('ZWII_UI'); + // Liste des langues UI disponibles if (is_dir(self::I18N_DIR)) { foreach ($this->getData(['languages']) as $lang => $value) {