From 22ef9b519e119c20817803b5fee76bcdc531dc8d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 22 Nov 2021 08:43:52 +0100 Subject: [PATCH] =?UTF-8?q?Theme=20recharge=20de=20la=20page=20apr=C3=A8s?= =?UTF-8?q?=20import=20=C3=A0=20revoir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index a76379b4..c58effe8 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -652,7 +652,9 @@ class theme extends common { $zipFilename = $this->getInput('themeManageImport', helper::FILTER_STRING_SHORT, true); $data = $this->import(self::FILE_DIR.'source/' . $zipFilename); - + if ($data['success']) { + header("Refresh:0"); + } // Valeurs en sortie $this->addOutput([ 'notification' => $data['notification'], @@ -710,6 +712,7 @@ class theme extends common { // traitement de l'erreur $notification = $success ? 'Le thème a été importé' : 'Erreur lors de l\'extraction, vérifiez les permissions.'; + } else { // pas une archive de thème $success = false;