mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
87054c8121
commit
793a0a061f
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
namespace Icinga\Form\Config;
|
namespace Icinga\Form\Config;
|
||||||
|
|
||||||
use Zend_Config;
|
use \Zend_Config;
|
||||||
use Icinga\Web\Form;
|
use Icinga\Web\Form;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Web\Form\Validator\WritablePathValidator;
|
use Icinga\Web\Form\Validator\WritablePathValidator;
|
||||||
@ -116,7 +116,19 @@ class LoggingForm extends Form
|
|||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => t('Application Prefix'),
|
'label' => t('Application Prefix'),
|
||||||
'helptext' => t('The name of the application by which to prefix syslog messages.'),
|
'helptext' => t('The name of the application by which to prefix syslog messages.'),
|
||||||
'value' => $loggingConfig->get('application', 'icingaweb')
|
'value' => $loggingConfig->get('application', 'icingaweb'),
|
||||||
|
'validators' => array(
|
||||||
|
array(
|
||||||
|
'Regex',
|
||||||
|
false,
|
||||||
|
array(
|
||||||
|
'pattern' => '/^[^\W]+$/',
|
||||||
|
'messages' => array(
|
||||||
|
'regexNotMatch' => 'The application prefix cannot contain any whitespaces.'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user