From b620d710e819e6a1783c08b0dfc830c443e57f53 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 22 Dec 2019 18:28:57 +0100 Subject: [PATCH] =?UTF-8?q?[9.2.16]=20Stocke=20la=20base=20URL=20et=20la?= =?UTF-8?q?=20met=20=C3=A0=20jour=20en=20cas=20de=20changement=20de=20r?= =?UTF-8?q?=C3=A9=C3=A9criture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/module/config/config.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 8180e8e1..5a6647f4 100644 --- a/core/core.php +++ b/core/core.php @@ -969,7 +969,7 @@ class common { if($this->getData(['core', 'dataVersion']) < 9210) { // Utile pour l'installation d'un backup sur un autre serveur - $this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]); + //$this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]); // Suppression d'une option de hauteur de la bannière if ($this->getData(['theme', 'header','height']) === 'none') { diff --git a/core/module/config/config.php b/core/module/config/config.php index 34eb308d..7b95c2cc 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -347,6 +347,8 @@ class config extends common { // Change le statut de la réécriture d'URL (pour le helper::baseUrl() de la redirection) helper::$rewriteStatus = false; } + // Met à jour la baseUrl + $this->setData(['core', 'baseUrl', helper::baseUrl(true,false) ]); } // Générer robots.txt et sitemap $this->generateFiles();