From 4e1175addee61d839a280001e2c08dd509da5ebf Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Mon, 21 Oct 2019 17:20:12 +0200 Subject: [PATCH] Test refresh --- core/core.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core.php b/core/core.php index 1f6d769a..0a8dae2c 100644 --- a/core/core.php +++ b/core/core.php @@ -643,6 +643,14 @@ class common { $this->setData(['page',$tempData['page']]); $this->setData(['module',$tempData['module']]); $this->setData(['theme',$tempTheme['theme']]); + // Nettoyage du fichier de thème pour forcer une régénération + if (!file_exists(self::DATA_DIR . '/theme.css')) { // On ne sait jamais + unlink (self::DATA_DIR . '/theme.css'); + } + // Forcer un refresh + //http_response_code(301); + //header('Location:' . helper::baseUrl(); + } /**