From 39cc4fbba5cd5e93c4f027efe59382d54f36ff0c Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 22 Nov 2021 09:48:54 +0100 Subject: [PATCH] Rafraichissement sans message --- core/module/theme/theme.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index c58effe8..bc22e4e4 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -654,14 +654,15 @@ class theme extends common { $data = $this->import(self::FILE_DIR.'source/' . $zipFilename); if ($data['success']) { header("Refresh:0"); + } else { + // Valeurs en sortie + $this->addOutput([ + 'notification' => $data['notification'], + 'state' => $data['success'], + 'title' => 'Gestion des thèmes', + 'view' => 'manage' + ]);; } - // Valeurs en sortie - $this->addOutput([ - 'notification' => $data['notification'], - 'state' => $data['success'], - 'title' => 'Gestion des thèmes', - 'view' => 'manage' - ]);; } // Valeurs en sortie $this->addOutput([