Make 'modules/monitoring/config.ini' doesn't have to exist

This commit is contained in:
Alexander Klimov 2014-08-20 18:15:38 +02:00
parent b146a8c311
commit 30d0ebcdfd

View File

@ -21,13 +21,14 @@ class SecurityForm extends Form
*/ */
public function create() public function create()
{ {
$default = '*pw*,*pass*,community';
$this->addElement( $this->addElement(
'text', 'text',
'protected_customvars', 'protected_customvars',
array( array(
'label' => 'Protected Custom Variables', 'label' => 'Protected Custom Variables',
'required' => true, 'required' => true,
'value' => $this->config->protected_customvars, 'value' => $this->config ? $this->config->get('protected_customvars', $default) : $default,
'helptext' => 'Comma separated case insensitive list of protected custom variables.' 'helptext' => 'Comma separated case insensitive list of protected custom variables.'
. ' Use * as a placeholder for zero or more wildcard characters.' . ' Use * as a placeholder for zero or more wildcard characters.'
. ' Existance of those custom variables will be shown, but their values will be masked.' . ' Existance of those custom variables will be shown, but their values will be masked.'