forked from ZwiiCMS-Team/ZwiiCampus
Double slashs
This commit is contained in:
parent
19246a59c9
commit
a35036e0fa
@ -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')
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user