Skip to content

Commit b146b32

Browse files
committed
chore: use the webguiGlobals to set the var state
1 parent 2408ab4 commit b146b32

File tree

1 file changed

+1
-1
lines changed
  • plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include

1 file changed

+1
-1
lines changed

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/state.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function __construct()
9494
$this->webguiGlobals = &$webguiGlobals;
9595
// echo "<pre>" . json_encode($this->webguiGlobals, JSON_PRETTY_PRINT) . "</pre>";
9696

97-
$this->var = (array)parse_ini_file('state/var.ini');
97+
$this->var = $webguiGlobals['var'];
9898
$this->nginxCfg = @parse_ini_file('/var/local/emhttp/nginx.ini') ?? [];
9999

100100
$this->state = strtoupper(empty($this->var['regCheck']) ? $this->var['regTy'] : $this->var['regCheck']);

0 commit comments

Comments
 (0)