[10.0.83.dev] Initialiser le chemin d'installation dans le core

This commit is contained in:
fredtempez 2019-11-09 19:18:42 +01:00
parent 9995073aeb
commit c12bc4003f
2 changed files with 4 additions and 5 deletions

View File

@ -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) ]);

View File

@ -85,6 +85,8 @@ class install extends common {
'<strong>URL du site :</strong> <a href="' . helper::baseUrl(false) . '" target="_blank">' . helper::baseUrl(false) . '</a><br>' .
'<strong>Identifiant du compte :</strong> ' . $this->getInput('installId') . '<br>'
);
// 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