summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-30 17:08:47 +0000
committeralecpl <alec@alec.pl>2011-05-30 17:08:47 +0000
commit644e3ad91250c0cb7b291b48e3b5cef401bffd90 (patch)
tree6027a214fe6a422e19a397e30c260f1a4129203a /program/steps/mail/sendmail.inc
parent1d5779b2577453a1000f38fa987bb0eafd3c554f (diff)
- Fix setting language for spellchecker on spellcheck_before_send
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index de971a25a..80543041a 100644
--- a/program/steps/mail/sendmail.inc
+++ b/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;