diff options
author | alecpl <alec@alec.pl> | 2010-06-24 13:27:43 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-06-24 13:27:43 +0000 |
commit | f4f6291ec16bd2fe368f868e667ea2071c514098 (patch) | |
tree | e5d74a7168dfb1a4a015f6db4d7f10076f95b515 /program/steps/utils/spell.inc | |
parent | 2011bef155aacdfa8461a4d5c2cd3988d946d135 (diff) |
- Use built-in spellchecker instead of a PHP files of spellchecker plugin in TinyMCE
Diffstat (limited to 'program/steps/utils/spell.inc')
-rw-r--r-- | program/steps/utils/spell.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/program/steps/utils/spell.inc b/program/steps/utils/spell.inc index d0fbcb9e4..3778865ac 100644 --- a/program/steps/utils/spell.inc +++ b/program/steps/utils/spell.inc @@ -18,11 +18,15 @@ */ +// max. number of suggestions for one word +define('MAX_SUGGESTIONS', 10); + +$tiny = !empty($_GET['tiny']) ? 'html_' : ''; + if ($spell_engine = $RCMAIL->config->get('spellcheck_engine', 'googie')) { - include('spell_'.$spell_engine.'.inc'); + include('spell_'.$tiny.$spell_engine.'.inc'); } header('HTTP/1.1 404 Not Found'); exit; - |