Fix more error exceptions (#14266)

This commit is contained in:
Jellyfrog
2022-09-01 19:30:51 +02:00
committed by GitHub
parent f0c92d02c8
commit 3e2d7435af
4 changed files with 9 additions and 7 deletions

View File

@@ -102,7 +102,9 @@ class OS
// remove previously cached os settings and replace with user settings
$config = ['os' => []]; // local $config variable, not global
@include "$install_dir/config.php"; // FIXME load db settings too or don't load config.php
if (is_file("$install_dir/config.php")) {
@include "$install_dir/config.php"; // FIXME load db settings too or don't load config.php
}
Config::set('os', $config['os']);
// load the os defs fresh from cache (merges with existing OS settings)