From 49d2876be2d890265dded1aa87ac2c01c25ff362 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 24 Jun 2010 13:27:43 +0000 Subject: - Use built-in spellchecker instead of a PHP files of spellchecker plugin in TinyMCE git-svn-id: https://svn.roundcube.net/trunk@3784 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/utils/spell_pspell.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'roundcubemail/program/steps/utils/spell_pspell.inc') diff --git a/roundcubemail/program/steps/utils/spell_pspell.inc b/roundcubemail/program/steps/utils/spell_pspell.inc index 2c9c2333c..58720ff42 100644 --- a/roundcubemail/program/steps/utils/spell_pspell.inc +++ b/roundcubemail/program/steps/utils/spell_pspell.inc @@ -30,9 +30,6 @@ if (!extension_loaded('pspell')) { exit; } -// max. number of suggestions for one word -define('MAX_SUGGESTIONS', 10); - // read input $data = file_get_contents('php://input'); @@ -59,7 +56,7 @@ foreach ($words as $w) { if ($word && $plink && preg_match('/[^0-9\.]/', $word) && !pspell_check($plink, $word)) { $suggestions = pspell_suggest($plink, $word); - if (sizeof($suggestions)>10) + if (sizeof($suggestions)>MAX_SUGGESTIONS) $suggestions = array_slice($suggestions, 0, MAX_SUGGESTIONS); $out .= ''; -- cgit v1.2.3