forked from ZwiiCMS-Team/ZwiiCampus
DOuble slashs
This commit is contained in:
parent
2a152a9a1d
commit
0934bf847d
@ -347,11 +347,11 @@ class common
|
||||
// Instanciation de la classe des entrées / sorties
|
||||
// Les fichiers de configuration
|
||||
foreach ($this->configFiles as $module => $value) {
|
||||
$this->initDB($module);
|
||||
$this->initDB($module,self::DATA_DIR);
|
||||
}
|
||||
// Les fichiers des contenus
|
||||
foreach ($this->contentFiles as $module => $value) {
|
||||
$this->initDB($module, self::$siteContent);
|
||||
$this->initDB($module,self::DATA_DIR . self::$siteContent . '/');
|
||||
}
|
||||
|
||||
// Installation fraîche, initialisation de la configuration inexistante
|
||||
@ -371,7 +371,6 @@ class common
|
||||
$this->initData($stageId, self::$siteContent);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Récupère un utilisateur connecté
|
||||
@ -665,16 +664,15 @@ class common
|
||||
}
|
||||
|
||||
|
||||
public function initDB($module, $path = '')
|
||||
public function initDB($module, $path)
|
||||
{
|
||||
// Instanciation de la classe des entrées / sorties
|
||||
// Constructeur JsonDB;
|
||||
$this->dataFiles[$module] = new \Prowebcraft\JsonDb([
|
||||
'name' => $module . '.json',
|
||||
'dir' => self::DATA_DIR . $path . '/',
|
||||
'dir' => $path,
|
||||
'backup' => file_exists('site/data/.backup')
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user