Skip to content

Commit

Permalink
Fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Jan 2, 2020
1 parent 13f9b0d commit 4bdbb89
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/usr/local/www/services_ntpd.php
Expand Up @@ -331,14 +331,14 @@ function build_interface_list() {
'ntpminpoll',
'Minimum Poll Interval',
$pconfig['ntpminpoll'],
$ntp_poll_values,
$ntp_poll_values
))->setHelp('Minimum poll interval for NTP messages. If set, must be less than or equal to Maximum Poll Interval.');

$section->addInput(new Form_Select(
'ntpmaxpoll',
'Maximum Poll Interval',
$pconfig['ntpmaxpoll'],
$ntp_poll_values,
$ntp_poll_values
))->setHelp('Maximum poll interval for NTP messages. If set, must be greater than or equal to Minimum Poll Interval.');

$section->addInput(new Form_Checkbox(
Expand Down
4 changes: 2 additions & 2 deletions src/usr/local/www/services_ntpd_gps.php
Expand Up @@ -450,14 +450,14 @@ function build_nmea_list() {
'gpsminpoll',
'Minimum Poll Interval',
$pconfig['gpsminpoll'],
$ntp_poll_values,
$ntp_poll_values
))->setHelp('Minimum poll interval for NTP messages. If set, must be less than or equal to Maximum Poll Interval.');

$section->addInput(new Form_Select(
'gpsmaxpoll',
'Maximum Poll Interval',
$pconfig['gpsmaxpoll'],
$ntp_poll_values,
$ntp_poll_values
))->setHelp('Maximum poll interval for NTP messages. If set, must be greater than or equal to Minimum Poll Interval.');

$section->addInput(new Form_Checkbox(
Expand Down
4 changes: 2 additions & 2 deletions src/usr/local/www/services_ntpd_pps.php
Expand Up @@ -189,14 +189,14 @@
'ppsminpoll',
'Minimum Poll Interval',
$pconfig['ppsminpoll'],
$ntp_poll_values,
$ntp_poll_values
))->setHelp('Minimum poll interval for NTP messages. If set, must be less than or equal to Maximum Poll Interval.');

$section->addInput(new Form_Select(
'ppsmaxpoll',
'Maximum Poll Interval',
$pconfig['ppsmaxpoll'],
$ntp_poll_values,
$ntp_poll_values
))->setHelp('Maximum poll interval for NTP messages. If set, must be greater than or equal to Minimum Poll Interval.');

$section->addInput(new Form_Checkbox(
Expand Down
4 changes: 2 additions & 2 deletions src/usr/local/www/status_logs_settings.php
Expand Up @@ -266,7 +266,7 @@ function is_valid_syslog_server($target) {
'format',
'Log Message Format',
!isset($pconfig['format']) ? 'rfc3164' : $pconfig['format'],
$syslog_formats,
$syslog_formats
))->setHelp('The format of syslog messages written to disk locally and sent to ' .
'remote syslog servers (if enabled).%s' .
'Changing this value will only affect new log messages.', '<br />');
Expand Down Expand Up @@ -370,7 +370,7 @@ function is_valid_syslog_server($target) {
'logcompressiontype',
'Log Compression',
!isset($pconfig['logcompressiontype']) ? 'bzip2' : $pconfig['logcompressiontype'],
array_combine(array_keys($system_log_compression_types), array_keys($system_log_compression_types)),
array_combine(array_keys($system_log_compression_types), array_keys($system_log_compression_types))
))->setHelp('The type of compression to use when rotating log files. ' .
'Compressing rotated log files saves disk space, and the compressed logs remain available for display and searching in the GUI.%s' .
' WARNING: Changing this value will remove previously rotated compressed log files!', '<br />');
Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/www/system_crlmanager.php
Expand Up @@ -370,7 +370,7 @@ function build_cacert_list() {

$section->addInput(new Form_StaticText(
'Certificate Authority',
$crlca['descr'],
$crlca['descr']
));

if (!isset($id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/usr/local/www/system_gateways.php
Expand Up @@ -166,7 +166,7 @@ function delete_gateway_item($id) {
if (is_ipaddrv4($a_gateways[$id]['monitor'])) {
mwexec("/sbin/route delete " . escapeshellarg($a_gateways[$id]['monitor']) . " " . escapeshellarg($rgateway));
} else {
mwexec("/sbin/route delete -inet6 " . escapeshellarg($a_gateways[$id]['monitor']) . " " . escapeshellarg($rgateway)));
mwexec("/sbin/route delete -inet6 " . escapeshellarg($a_gateways[$id]['monitor']) . " " . escapeshellarg($rgateway));
}
}

Expand Down

0 comments on commit 4bdbb89

Please sign in to comment.