1.7.09 bug double slash initDB

This commit is contained in:
Fred Tempez 2024-04-10 08:32:08 +02:00
parent 0c94b2f546
commit 04f4c7be6d

View File

@ -675,7 +675,7 @@ class common
// Constructeur JsonDB;
$this->dataFiles[$module] = new \Prowebcraft\JsonDb([
'name' => $module . '.json',
'dir' => self::DATA_DIR . $path . '/',
'dir' => empty($path) ? self::DATA_DIR : self::DATA_DIR . $path . '/',
'backup' => file_exists('site/data/.backup')
]);