mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Cfg/Fixup
* also trigger first time load as soon as db is set up
This commit is contained in:
@@ -130,7 +130,11 @@ function setup() : void
|
|||||||
|
|
||||||
// init proper access for further setup
|
// init proper access for further setup
|
||||||
if (DB::test($AoWoWconf[$what], $err))
|
if (DB::test($AoWoWconf[$what], $err))
|
||||||
|
{
|
||||||
DB::load($idx, $AoWoWconf[$what]);
|
DB::load($idx, $AoWoWconf[$what]);
|
||||||
|
if ($idx == DB_AOWOW)
|
||||||
|
Cfg::load(); // first time load after successful db setup
|
||||||
|
}
|
||||||
else
|
else
|
||||||
$error[] = ' * '.$what.': '.$err;
|
$error[] = ' * '.$what.': '.$err;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user