mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix Captive Portal status
This commit is contained in:
parent
7f2bd97c62
commit
dff2ea2c2c
@ -289,11 +289,11 @@ $pconfig['description'] = gettext("NTP clock sync");
|
||||
$services[] = $pconfig;
|
||||
|
||||
if (is_array($config['captiveportal'])) {
|
||||
foreach ($config['captiveportal'] as $id => $setting) {
|
||||
foreach ($config['captiveportal'] as $zone => $setting) {
|
||||
if (isset($setting['enable'])) {
|
||||
$pconfig = array();
|
||||
$pconfig['name'] = "captiveportal";
|
||||
$pconfig['zone'] = $setting['zone'];
|
||||
$pconfig['zone'] = $zone;
|
||||
$pconfig['description'] = gettext("Captive Portal") . ": ".htmlspecialchars($setting['zone']);
|
||||
$services[] = $pconfig;
|
||||
}
|
||||
|
||||
@ -82,11 +82,11 @@ $svcconfig['description'] = gettext("NTP clock sync");
|
||||
$services[] = $svcconfig;
|
||||
|
||||
if (is_array($config['captiveportal'])) {
|
||||
foreach ($config['captiveportal'] as $id => $setting) {
|
||||
foreach ($config['captiveportal'] as $zone => $setting) {
|
||||
if (isset($setting['enable'])) {
|
||||
$svcconfig = array();
|
||||
$svcconfig['name'] = "captiveportal";
|
||||
$svcconfig['zone'] = $setting['zone'];
|
||||
$svcconfig['zone'] = $zone;
|
||||
$svcconfig['description'] = gettext("Captive Portal") . ": ".htmlspecialchars($setting['zone']);
|
||||
$services[] = $svcconfig;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user