From ca945ed16c51a88deb56ed7bb0a72f027d1ae852 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 21 Feb 2023 14:20:30 +0100 Subject: [PATCH] Clean cookie prev install --- core/module/install/install.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) {