diff --git a/bl-kernel/abstract/dbjson.class.php b/bl-kernel/abstract/dbjson.class.php index f44f3658..a435007e 100644 --- a/bl-kernel/abstract/dbjson.class.php +++ b/bl-kernel/abstract/dbjson.class.php @@ -79,7 +79,7 @@ class dbJSON { if (file_put_contents($this->file, $data, LOCK_EX)) { return true; } else { - Log::set(__METHOD__.LOG_SEP.'Error occurred when trying to save the database file.', LOG_TYPE_ERROR); + Log::set(__METHOD__.LOG_SEP.'Error occurred when trying to save the database file.', \LOG_TYPE_ERROR); return false; } } diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index 6c67b67b..8bc6aa73 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -1,10 +1,5 @@ db['language-data']['native']; + $native = $t->db['language-data']['native'] ?? false; $locale = basename($file, '.json'); $tmp[$locale] = $native; }