DOuble slashs
This commit is contained in:
parent
939cb8d53f
commit
3593e853d8
@ -335,11 +335,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 . '/');
|
||||
}
|
||||
|
||||
|
||||
@ -360,7 +360,6 @@ class common
|
||||
$this->initData($stageId, self::$siteContent);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Récupère un utilisateur connecté
|
||||
@ -611,16 +610,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