diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/utils/spell.inc | 2 | ||||
-rw-r--r-- | program/steps/utils/spell_html.inc | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/program/steps/utils/spell.inc b/program/steps/utils/spell.inc index b59fe7998..38e4ca285 100644 --- a/program/steps/utils/spell.inc +++ b/program/steps/utils/spell.inc @@ -43,7 +43,7 @@ else { } if ($err = $spellchecker->error()) { - raise_error(array('code' => 500, 'type' => 'php', + rcube::raise_error(array('code' => 500, 'type' => 'php', 'file' => __FILE__, 'line' => __LINE__, 'message' => sprintf("Spell check engine error: " . $err)), true, false); diff --git a/program/steps/utils/spell_html.inc b/program/steps/utils/spell_html.inc index 861e4ba48..96b41e230 100644 --- a/program/steps/utils/spell_html.inc +++ b/program/steps/utils/spell_html.inc @@ -46,6 +46,11 @@ else if ($request['method'] == 'learnWord') { } if ($error = $spellchecker->error()) { + rcube::raise_error(array('code' => 500, 'type' => 'php', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => sprintf("Spell check engine error: " . $error)), + true, false); + echo '{"error":{"errstr":"' . addslashes($error) . '","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}'; exit; } |