voucher: capital letters for sentences

Suggested by: @fabianfrz
This commit is contained in:
Franco Fichtner 2016-08-03 00:47:06 +02:00
parent 79a2008b66
commit e5af3423be

View File

@ -411,7 +411,7 @@ class Voucher implements IAuthConnector
$fields["usernameLength"]["help"] = gettext("Specify alternative username length for generating vouchers");
$fields["usernameLength"]["validate"] = function($value) {
if (!empty($value) && filter_var($value, FILTER_SANITIZE_NUMBER_INT) != $value) {
return array(gettext("username length must be a number or empty for default."));
return array(gettext("Username length must be a number or empty for default."));
} else {
return array();
}
@ -423,7 +423,7 @@ class Voucher implements IAuthConnector
$fields["passwordLength"]["help"] = gettext("Specify alternative password length for generating vouchers");
$fields["passwordLength"]["validate"] = function($value) {
if (!empty($value) && filter_var($value, FILTER_SANITIZE_NUMBER_INT) != $value) {
return array(gettext("password length must be a number or empty for default."));
return array(gettext("Password length must be a number or empty for default."));
} else {
return array();
}