Browse Source

parse interface config ini the same as in 6e33e4c (#348)

when showing network config. this makes the proper
radio button be checked.
pull/375/head
glaszig 3 years ago
parent
commit
63c3fc57f0
  1. 2
      ajax/networking/get_int_config.php

2
ajax/networking/get_int_config.php

@ -12,7 +12,7 @@ if(isset($_POST['interface'])) {
touch(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini');
}
$intConfig = parse_ini_file(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini');
$intConfig = parse_ini_file(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini', false, INI_SCANNER_RAW);
$jsonData = ['return'=>1,'output'=>['intConfig'=>$intConfig]];
echo json_encode($jsonData);

Loading…
Cancel
Save