mirror of
https://github.com/unraid/webgui.git
synced 2026-02-17 22:48:53 -06:00
fix: ensure server-state.php loads necessary variables
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
$var = (array)parse_ini_file('state/var.ini'); // required for state.php - don't remove unless you've refactored the code to work without it
|
||||
require_once "$docroot/plugins/dynamix.my.servers/include/state.php";
|
||||
|
||||
$serverState = new ServerState();
|
||||
|
||||
Reference in New Issue
Block a user