From a4068fe9345909ef951c8271e11408ed08621475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 5 Oct 2022 06:50:56 +0200 Subject: [PATCH] bug install postinstall --- core/module/install/install.php | 4 ++-- core/module/install/view/postinstall/postinstall.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index 0e4e90d8..95f544f9 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -105,6 +105,7 @@ class install extends common else { // Soumission du formulaire if ($this->isPost()) { + $success = true; // Double vérification pour le mot de passe if ($this->getInput('installPassword', helper::FILTER_STRING_SHORT, true) !== $this->getInput('installConfirmPassword', helper::FILTER_STRING_SHORT, true)) { @@ -164,8 +165,7 @@ class install extends common }*/ // Installation du site de test - var_dump($this->getInput('installDefaultData', helper::FILTER_BOOLEAN)); - die(); + if ($this->getInput('installDefaultData', helper::FILTER_BOOLEAN) === FALSE) { $this->initData('page', self::$i18nContent, true); $this->initData('module', self::$i18nContent, true); diff --git a/core/module/install/view/postinstall/postinstall.php b/core/module/install/view/postinstall/postinstall.php index 5a009b75..cd4de68b 100644 --- a/core/module/install/view/postinstall/postinstall.php +++ b/core/module/install/view/postinstall/postinstall.php @@ -55,7 +55,7 @@
- false ]); ?>