Clean cookie prev install
This commit is contained in:
parent
019c548b57
commit
ca945ed16c
@ -54,16 +54,17 @@ class install extends common
|
|||||||
else {
|
else {
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
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
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$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
|
// Liste des langues UI disponibles
|
||||||
if (is_dir(self::I18N_DIR)) {
|
if (is_dir(self::I18N_DIR)) {
|
||||||
foreach ($this->getData(['languages']) as $lang => $value) {
|
foreach ($this->getData(['languages']) as $lang => $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user