summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-30 17:08:47 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-30 17:08:47 +0000
commitb99d09dd1b1b7d964b9726104cd6bdd82de9cef1 (patch)
tree35cac318f8066dbba6c305717803aa8909eb52c4 /roundcubemail/program/steps/mail/sendmail.inc
parent42ab7c04862ecd06ee178e005fa41d3654256f1b (diff)
- Fix setting language for spellchecker on spellcheck_before_send
git-svn-id: https://svn.roundcube.net/trunk@4817 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/sendmail.inc')
-rw-r--r--roundcubemail/program/steps/mail/sendmail.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc
index de971a25a..80543041a 100644
--- a/roundcubemail/program/steps/mail/sendmail.inc
+++ b/roundcubemail/program/steps/mail/sendmail.inc
@@ -413,7 +413,7 @@ if (!$savedraft) {
if ($CONFIG['spellcheck_before_send'] && $CONFIG['enable_spellcheck']
&& empty($_SESSION['compose']['spell_checked'])
) {
- $spellchecker = new rcube_spellchecker();
+ $spellchecker = new rcube_spellchecker(get_input_value('_lang', RCUBE_INPUT_GPC));
$spell_result = $spellchecker->check($message_body, $isHtml);
$_SESSION['compose']['spell_checked'] = true;