mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
firewall: groups: Fix wording of 9425ca7 (#8025)
This commit is contained in:
parent
052eea3253
commit
2616ace119
@ -58,10 +58,10 @@ class GroupNameField extends BaseField
|
||||
$result[] = gettext('Only letters, digits and underscores are allowed as the group name.');
|
||||
}
|
||||
if (!empty($value) && strlen($value) > 15) {
|
||||
$result[] = gettext('The group name must not be longer than 15 characters.');
|
||||
$result[] = gettext('The group name shall not be longer than 15 characters.');
|
||||
}
|
||||
if (preg_match('/^[0-9]|[0-9]$/', $value, $match)) {
|
||||
$result[] = gettext('The group name must not start or end with a digit.');
|
||||
$result[] = gettext('The group name shall not start or end with a digit.');
|
||||
}
|
||||
$cnf = Config::getInstance()->object();
|
||||
if (!empty($cnf->$value) && empty($cnf->$value->virtual)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user