Clean cookie prev install

This commit is contained in:
Fred Tempez 2023-02-21 14:20:30 +01:00
parent 019c548b57
commit ca945ed16c
1 changed files with 5 additions and 4 deletions

View File

@ -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) {