Cfg/Fixup

* also trigger first time load as soon as db is set up
This commit is contained in:
Sarjuuk
2024-06-04 23:15:18 +02:00
parent e734b41632
commit 69fe0b5c7d

View File

@@ -130,7 +130,11 @@ function setup() : void
// init proper access for further setup
if (DB::test($AoWoWconf[$what], $err))
{
DB::load($idx, $AoWoWconf[$what]);
if ($idx == DB_AOWOW)
Cfg::load(); // first time load after successful db setup
}
else
$error[] = ' * '.$what.': '.$err;
}