mirror of
https://github.com/unraid/webgui.git
synced 2026-03-06 17:20:32 -06:00
Added custom parse_ini_file function to deal with '#' comments
This commit is contained in:
@@ -239,4 +239,8 @@ function transpose_user_path($path) {
|
||||
}
|
||||
return $path;
|
||||
}
|
||||
// custom parse_ini_file function to deal with '#' comments
|
||||
function my_parse_ini_file($file) {
|
||||
return parse_ini_string(str_replace('#',';',file_get_contents($file)));
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user