mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 02:31:45 -05:00
Revert "Use $varroot for the shares.ini file."
This reverts commit a6905bc3ad.
This commit is contained in:
@@ -29,7 +29,7 @@ require_once "$docroot/webGui/include/Translations.php";
|
||||
$locale_init = $locale;
|
||||
|
||||
/* Parse the ini files */
|
||||
$shares = parse_ini_file($varroot.'/shares.ini', true);
|
||||
$shares = parse_ini_file('state/shares.ini', true);
|
||||
$disks = parse_ini_file('state/disks.ini', true);
|
||||
|
||||
function update_translation($locale) {
|
||||
@@ -97,6 +97,7 @@ while (true) {
|
||||
if (count($fans)) $echo['fan'] = array_map(function($fan){return "$fan RPM";},$fans);
|
||||
|
||||
// add streams information
|
||||
/* Extract keys from both ini files */
|
||||
$paths = array_keys($disks);
|
||||
|
||||
/* Validate and filter accessible mount points */
|
||||
|
||||
Reference in New Issue
Block a user