From c88fbe4092a2b5cf908c0c749d8b5e153f71c15b Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 27 Oct 2020 21:21:30 +0100 Subject: [PATCH] =?UTF-8?q?blacklist=20non=20cr=C3=A9=C3=A9=20+=20une=20se?= =?UTF-8?q?ule=20variable=20des=20description=20des=20donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/core/core.php b/core/core.php index cd1fcac1..e8a8a189 100644 --- a/core/core.php +++ b/core/core.php @@ -56,15 +56,6 @@ class common { 'theme', 'user' ]; - public static $dataStage = [ - 'config', - 'core', - 'module', - 'page', - 'user', - 'theme', - 'admin' - ]; public static $accessList = [ 'user', 'theme', @@ -170,8 +161,6 @@ class common { 'blacklist' => '' ]; - - /** * Constructeur commun */ @@ -209,7 +198,7 @@ class common { // Installation fraîche, initialisation des modules manquants // 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'); if (file_exists($folder . $stageId .'.json') === false) { $this->initData($stageId,'fr');