From c8d20eb01cb3faef7fa5c01be2fcb6641403d4c3 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Thu, 6 Mar 2025 17:05:51 -0500 Subject: [PATCH] chore: use the webguiGlobals to set the var state --- .../local/emhttp/plugins/dynamix.my.servers/include/state.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php index 04770ef30..fd5e3f30e 100644 --- a/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php +++ b/plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php @@ -94,7 +94,7 @@ class ServerState $this->webguiGlobals = &$webguiGlobals; // echo "
" . json_encode($this->webguiGlobals, JSON_PRETTY_PRINT) . "
"; - $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']);