mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Merge pull request #375 from glaszig/fix/network-config-display
network config: properly check radio buttons
This commit is contained in:
commit
5b041e6899
@ -12,7 +12,7 @@ if(isset($_POST['interface'])) {
|
|||||||
touch(RASPI_CONFIG_NETWORKING.'/'.$int.'.ini');
|
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]];
|
$jsonData = ['return'=>1,'output'=>['intConfig'=>$intConfig]];
|
||||||
echo json_encode($jsonData);
|
echo json_encode($jsonData);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user