thomascube
2011-12-22 aa3a9a41f3fc8e36b681d97d301d637a3383add3
program/steps/utils/spell_html.inc
@@ -40,6 +40,10 @@
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"}}';