aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2002-03-18 18:42:25 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2002-03-18 18:42:25 +0000
commit4350c9b937090fba7c4b123dec6492bc0fbd6273 (patch)
treedbdecc922e9ad8c0d98b5e0757885d5c910f0b26
parent73f1986816193d24042352d51b8ebe48f892d85c (diff)
downloadforums-4350c9b937090fba7c4b123dec6492bc0fbd6273.tar
forums-4350c9b937090fba7c4b123dec6492bc0fbd6273.tar.gz
forums-4350c9b937090fba7c4b123dec6492bc0fbd6273.tar.bz2
forums-4350c9b937090fba7c4b123dec6492bc0fbd6273.tar.xz
forums-4350c9b937090fba7c4b123dec6492bc0fbd6273.zip
Fixed bug #528267
git-svn-id: file:///svn/phpbb/trunk@2320 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/usercp_email.php2
-rw-r--r--phpBB/templates/subSilver/profile_send_email.tpl4
2 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/usercp_email.php b/phpBB/includes/usercp_email.php
index 23fd3b23da..3a7bd36375 100644
--- a/phpBB/includes/usercp_email.php
+++ b/phpBB/includes/usercp_email.php
@@ -180,6 +180,8 @@ if ( $result = $db->sql_query($sql) )
'L_SUBJECT' => $lang['Subject'],
'L_MESSAGE_BODY' => $lang['Message_body'],
'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_CC_EMAIL' => $lang['CC_email'],
'L_NOTIFY_ON_REPLY' => $lang['Notify'],
diff --git a/phpBB/templates/subSilver/profile_send_email.tpl b/phpBB/templates/subSilver/profile_send_email.tpl
index 9e5a0d37c9..9a2b4590ca 100644
--- a/phpBB/templates/subSilver/profile_send_email.tpl
+++ b/phpBB/templates/subSilver/profile_send_email.tpl
@@ -12,11 +12,11 @@ function checkForm(formObj) {
formErrors = false;
if (formObj.message.value.length < 2) {
- formErrors = "You must enter a message!";
+ formErrors = "{L_EMPTY_MESSAGE_EMAIL}";
}
else if ( formObj.subject.value.length < 2)
{
- formErrors = "You must enter a subject!";
+ formErrors = "{L_EMPTY_SUBJECT_EMAIL}";
}
if (formErrors) {