Double slashs

This commit is contained in:
Fred Tempez 2024-04-05 17:54:10 +02:00
parent 19246a59c9
commit a35036e0fa

View File

@ -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 . '/');
}
@ -623,13 +623,13 @@ 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')
]);