We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7467f9f commit 34a3f8aCopy full SHA for 34a3f8a
2 files changed
interface/web/mail/form/mail_user.tform.php
@@ -93,6 +93,9 @@
93
'formtype' => 'TEXT',
94
'validators' => array ( 0 => array ( 'type' => 'ISINT',
95
'errmsg'=> 'quota_error_isint'),
96
+ 1 => array ( 'type' => 'REGEX',
97
+ 'regex' => '/^(-1)|([1-9][0-9]*)$/',
98
+ 'errmsg'=> 'quota_error_value'),
99
),
100
'default' => '0',
101
'value' => '',
interface/web/mail/lib/lang/en_mail_user.lng
@@ -28,4 +28,5 @@ $wb["welcome_mail_message"] = "Welcome to your new email account. Your webmaster
28
$wb["disableimap_txt"] = 'Disable IMAP';
29
$wb["disablepop3_txt"] = 'Disable POP3';
30
$wb["duplicate_alias_or_forward_txt"] = 'There is already an alias or forwrd with this email address.';
31
+$wb["quota_error_value"] = 'Invalid quota value. Allowed values are: -1 for unlimited or numbers > 1';
32
?>
0 commit comments