setup: Don't show logging facility if webserver logging is selected
Syslog used to be the default selection. Now it's the webserver log.
This commit is contained in:
parent
59054dd01c
commit
17fa071d73
|
@ -65,7 +65,7 @@ class LoggingConfigForm extends Form
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false === isset($formData['logging_log']) || in_array($formData['logging_log'], array('syslog', 'php'))) {
|
if (! isset($formData['logging_log']) || in_array($formData['logging_log'], array('syslog', 'php'))) {
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'logging_application',
|
'logging_application',
|
||||||
|
@ -94,7 +94,7 @@ class LoggingConfigForm extends Form
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (! isset($formData['logging_log']) || $formData['logging_log'] === 'syslog') {
|
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(
|
||||||
|
|
Loading…
Reference in New Issue