mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
LoggingConfigForm: only display the Syslog facility option if logging to Syslog
This commit is contained in:
parent
f27e8c059d
commit
1045d91389
@ -94,6 +94,7 @@ class LoggingConfigForm extends Form
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (! isset($formData['logging_log']) || $formData['logging_log'] === 'syslog') {
|
||||||
if (Platform::isWindows()) {
|
if (Platform::isWindows()) {
|
||||||
/* @see https://secure.php.net/manual/en/function.openlog.php */
|
/* @see https://secure.php.net/manual/en/function.openlog.php */
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
@ -118,6 +119,7 @@ class LoggingConfigForm extends Form
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} elseif (isset($formData['logging_log']) && $formData['logging_log'] === 'file') {
|
} elseif (isset($formData['logging_log']) && $formData['logging_log'] === 'file') {
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user