blacklist non créé + une seule variable des description des données

This commit is contained in:
fredtempez 2020-10-27 21:21:30 +01:00
parent cff5837d41
commit c88fbe4092
1 changed files with 1 additions and 12 deletions

View File

@ -56,15 +56,6 @@ class common {
'theme', 'theme',
'user' 'user'
]; ];
public static $dataStage = [
'config',
'core',
'module',
'page',
'user',
'theme',
'admin'
];
public static $accessList = [ public static $accessList = [
'user', 'user',
'theme', 'theme',
@ -170,8 +161,6 @@ class common {
'blacklist' => '' 'blacklist' => ''
]; ];
/** /**
* Constructeur commun * Constructeur commun
*/ */
@ -209,7 +198,7 @@ class common {
// Installation fraîche, initialisation des modules manquants // Installation fraîche, initialisation des modules manquants
// La langue d'installation par défaut est fr // La langue d'installation par défaut est fr
foreach (self::$dataStage as $stageId) { foreach ($this->dataFiles as $stageId => $item) {
$folder = $this->dirData ($stageId, 'fr'); $folder = $this->dirData ($stageId, 'fr');
if (file_exists($folder . $stageId .'.json') === false) { if (file_exists($folder . $stageId .'.json') === false) {
$this->initData($stageId,'fr'); $this->initData($stageId,'fr');