diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-11-27 08:43:43 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-11-27 08:43:43 +0100 |
commit | a92beb6bdb9cb857e8cee6606033691f11692230 (patch) | |
tree | 4733c82a5989817bb7d61b0ad9bd12cb62a2b881 /program/lib/Roundcube/rcube_spellchecker.php | |
parent | 581fe08a050bea2dbdcad30b9a0ea02f5623a3ac (diff) |
Define RCUBE_CHARSET in place of RCMAIL_CHARSET for naming consistency
Diffstat (limited to 'program/lib/Roundcube/rcube_spellchecker.php')
-rw-r--r-- | program/lib/Roundcube/rcube_spellchecker.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/program/lib/Roundcube/rcube_spellchecker.php b/program/lib/Roundcube/rcube_spellchecker.php index 30d15d721..fce2cac75 100644 --- a/program/lib/Roundcube/rcube_spellchecker.php +++ b/program/lib/Roundcube/rcube_spellchecker.php @@ -150,7 +150,7 @@ class rcube_spellchecker function get_xml() { // send output - $out = '<?xml version="1.0" encoding="'.RCMAIL_CHARSET.'"?><spellresult charschecked="'.mb_strlen($this->content).'">'; + $out = '<?xml version="1.0" encoding="'.RCUBE_CHARSET.'"?><spellresult charschecked="'.mb_strlen($this->content).'">'; foreach ($this->matches as $item) { $out .= '<c o="'.$item[1].'" l="'.$item[2].'">'; @@ -178,7 +178,7 @@ class rcube_spellchecker $word = $item[0]; } else { - $word = mb_substr($this->content, $item[1], $item[2], RCMAIL_CHARSET); + $word = mb_substr($this->content, $item[1], $item[2], RCUBE_CHARSET); } $result[$word] = is_array($item[4]) ? implode("\t", $item[4]) : $item[4]; } @@ -326,7 +326,7 @@ class rcube_spellchecker return; } - $this->plink = pspell_new($this->lang, null, null, RCMAIL_CHARSET, PSPELL_FAST); + $this->plink = pspell_new($this->lang, null, null, RCUBE_CHARSET, PSPELL_FAST); } if (!$this->plink) { @@ -387,7 +387,7 @@ class rcube_spellchecker || !empty($this->options['ignore_caps']) || !empty($this->options['dictionary']) ) { foreach ($matches as $idx => $m) { - $word = mb_substr($text, $m[1], $m[2], RCMAIL_CHARSET); + $word = mb_substr($text, $m[1], $m[2], RCUBE_CHARSET); // skip exceptions if ($this->is_exception($word)) { unset($matches[$idx]); @@ -416,7 +416,7 @@ class rcube_spellchecker $result = array(); foreach ($matches as $m) { - $result[] = mb_substr($text, $m[1], $m[2], RCMAIL_CHARSET); + $result[] = mb_substr($text, $m[1], $m[2], RCUBE_CHARSET); } return $result; |