LoggingConfigForm: Fix that the facility is missing without any log config
Also re-sets syslog as the default selection as it's the actual default without any log config. The previous commit in this file fixed this the wrong way. (Shame on me..)
This commit is contained in:
parent
3f66bd7437
commit
cece9d7e65
|
@ -39,8 +39,8 @@ class LoggingConfigForm extends Form
|
|||
'label' => $this->translate('Logging Type'),
|
||||
'description' => $this->translate('The type of logging to utilize.'),
|
||||
'multiOptions' => array(
|
||||
'php' => $this->translate('Webserver Log', 'app.config.logging.type'),
|
||||
'syslog' => 'Syslog',
|
||||
'php' => $this->translate('Webserver Log', 'app.config.logging.type'),
|
||||
'file' => $this->translate('File', 'app.config.logging.type'),
|
||||
'none' => $this->translate('None', 'app.config.logging.type')
|
||||
)
|
||||
|
@ -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()) {
|
||||
/* @see https://secure.php.net/manual/en/function.openlog.php */
|
||||
$this->addElement(
|
||||
|
|
Loading…
Reference in New Issue