Bug variable non déclarée dans config

This commit is contained in:
F Tempez 2021-04-06 17:44:03 +02:00
parent 9de4b08d20
commit 6f7efd7420
1 changed files with 2 additions and 4 deletions

View File

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