mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
chore: use the webguiGlobals to set the var state
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user