From c12bc4003ff24912f2408a2afcf2e974593ccb6d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 9 Nov 2019 19:18:42 +0100 Subject: [PATCH] [10.0.83.dev] Initialiser le chemin d'installation dans le core --- core/core.php | 7 ++----- core/module/install/install.php | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/core.php b/core/core.php index 18fffd64..f85dfa30 100644 --- a/core/core.php +++ b/core/core.php @@ -31,7 +31,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '10.0.82.dev'; + const ZWII_VERSION = '10.0.83.dev'; public static $actions = []; public static $coreModuleIds = [ @@ -1113,10 +1113,7 @@ class common { } // Version 9.2.10 - if($this->getData(['core', 'dataVersion']) < 9210) { - // Utile pour l'installation d'un backup sur un autre serveur uniquement sur une V9 - // $this->setData(['core', 'baseUrl', str_replace('/','',helper::baseUrl(false,false)) ]); - + 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) ]); diff --git a/core/module/install/install.php b/core/module/install/install.php index 2750cc47..9da399b5 100755 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -85,6 +85,8 @@ class install extends common { 'URL du site : ' . helper::baseUrl(false) . '
' . 'Identifiant du compte : ' . $this->getInput('installId') . '
' ); + // Stocker le dossier d'installation + $this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]); // Générer un fichier robots.txt $this->createRobots(); // Créer sitemap