mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
Fixed bug #528267
git-svn-id: file:///svn/phpbb/trunk@2320 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
73f1986816
commit
4350c9b937
2 changed files with 4 additions and 2 deletions
|
@ -180,6 +180,8 @@ if ( $result = $db->sql_query($sql) )
|
||||||
'L_SUBJECT' => $lang['Subject'],
|
'L_SUBJECT' => $lang['Subject'],
|
||||||
'L_MESSAGE_BODY' => $lang['Message_body'],
|
'L_MESSAGE_BODY' => $lang['Message_body'],
|
||||||
'L_MESSAGE_BODY_DESC' => $lang['Email_message_desc'],
|
'L_MESSAGE_BODY_DESC' => $lang['Email_message_desc'],
|
||||||
|
'L_EMPTY_SUBJECT_EMAIL' => $lang['Empty_subject_email'],
|
||||||
|
'L_EMPTY_MESSAGE_EMAIL' => $lang['Empty_message_email'],
|
||||||
'L_OPTIONS' => $lang['Options'],
|
'L_OPTIONS' => $lang['Options'],
|
||||||
'L_CC_EMAIL' => $lang['CC_email'],
|
'L_CC_EMAIL' => $lang['CC_email'],
|
||||||
'L_NOTIFY_ON_REPLY' => $lang['Notify'],
|
'L_NOTIFY_ON_REPLY' => $lang['Notify'],
|
||||||
|
|
|
@ -12,11 +12,11 @@ function checkForm(formObj) {
|
||||||
formErrors = false;
|
formErrors = false;
|
||||||
|
|
||||||
if (formObj.message.value.length < 2) {
|
if (formObj.message.value.length < 2) {
|
||||||
formErrors = "You must enter a message!";
|
formErrors = "{L_EMPTY_MESSAGE_EMAIL}";
|
||||||
}
|
}
|
||||||
else if ( formObj.subject.value.length < 2)
|
else if ( formObj.subject.value.length < 2)
|
||||||
{
|
{
|
||||||
formErrors = "You must enter a subject!";
|
formErrors = "{L_EMPTY_SUBJECT_EMAIL}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (formErrors) {
|
if (formErrors) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue