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:
Johannes Meyer 2017-11-27 16:42:48 +01:00
parent 59054dd01c
commit 17fa071d73
1 changed files with 2 additions and 2 deletions

View File

@ -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(