mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Misc
* fix some outdated array indizes during setup * fix indexing when connecting to DB for first time * add initial loading of config strings during setup
This commit is contained in:
@@ -118,7 +118,7 @@ function setup() : void
|
||||
require 'config/config.php';
|
||||
|
||||
$error = [];
|
||||
foreach (['world', 'aowow', 'auth'] as $idx => $what)
|
||||
foreach (['aowow', 'world', 'auth'] as $idx => $what)
|
||||
{
|
||||
if ($what == 'auth' && (empty($AoWoWconf['auth']) || empty($AoWoWconf['auth']['host'])))
|
||||
continue;
|
||||
|
||||
@@ -431,6 +431,9 @@ function siteconfig() : void
|
||||
$updScripts = [];
|
||||
}
|
||||
}
|
||||
|
||||
// actually load set constants
|
||||
loadConfig(true);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user