chore: use the webguiGlobals to set the var state

This commit is contained in:
Eli Bosley
2025-03-06 17:05:51 -05:00
parent d467f13a5d
commit c8d20eb01c

View File

@@ -94,7 +94,7 @@ class ServerState
$this->webguiGlobals = &$webguiGlobals;
// echo "<pre>" . json_encode($this->webguiGlobals, JSON_PRETTY_PRINT) . "</pre>";
$this->var = (array)parse_ini_file('state/var.ini');
$this->var = $webguiGlobals['var'];
$this->nginxCfg = @parse_ini_file('/var/local/emhttp/nginx.ini') ?? [];
$this->state = strtoupper(empty($this->var['regCheck']) ? $this->var['regTy'] : $this->var['regCheck']);