From 6f7efd7420a9dd7e2b8577c979624329a501ec48 Mon Sep 17 00:00:00 2001 From: F Tempez Date: Tue, 6 Apr 2021 17:44:03 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20variable=20non=20d=C3=A9clar=C3=A9e=20dan?= =?UTF-8?q?s=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/config/config.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/module/config/config.php b/core/module/config/config.php index 6e88920e..7f41eea0 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -422,7 +422,6 @@ class config extends common { public function advanced() { // Soumission du formulaire if($this->isPost()) { - $success = true; // Basculement en mise à jour auto // Remise à 0 du compteur if ($this->getData(['config','autoUpdate']) === false && @@ -528,11 +527,10 @@ class config extends common { // Générer robots.txt et sitemap $this->generateFiles(); // Valeurs en sortie - $notification = $notification . 'Modifications enregistrées'; $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl(), - 'notification' => $notification, - 'state' => $success + 'notification' => 'Modifications enregistrées', + 'state' => true ]); } // Valeurs en sortie