X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Fsteps%2Futils%2Fspell_html.inc;h=4567e13ba83a227205067c5d52d39dcb36d56c13;hb=76507f7c63a660742e76889ad6e3919f3dde3bb0;hp=d0324c6176174f36aa6be59ef4341e44f09e3b47;hpb=a2dd2e41259a5e90016efcd7d083020b95e25527;p=roundcube.git diff --git a/program/steps/utils/spell_html.inc b/program/steps/utils/spell_html.inc index d0324c6..4567e13 100644 --- a/program/steps/utils/spell_html.inc +++ b/program/steps/utils/spell_html.inc @@ -15,7 +15,7 @@ | Author: Aleksander Machniak | +-----------------------------------------------------------------------+ - $Id: spell_html.inc 4815 2011-05-30 15:08:26Z alec $ + $Id: spell_html.inc 5181 2011-09-06 13:39:45Z alec $ */ @@ -40,6 +40,10 @@ if ($request['method'] == 'checkWords') { else if ($request['method'] == 'getSuggestions') { $result['result'] = $spellchecker->get_suggestions($data); } +else if ($request['method'] == 'learnWord') { + $spellchecker->add_word($data); + $result['result'] = true; +} if ($error = $spellchecker->error()) { echo '{"error":{"errstr":"' . addslashes($error) . '","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}';