mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-25736 TinyMce Spellchecker French issues
GoogleSpell checker already returns data un UTF8, so there's no need to use utf8_encode (in fact, using it completely mangles the string). All credit goes to David Quintal for finding the issue and proposing the fix.
This commit is contained in:
parent
8ccaa296fa
commit
b98dd3ff31
@ -39,7 +39,7 @@ class GoogleSpell extends SpellChecker {
|
||||
$matches = $this->_getMatches($lang, $word);
|
||||
|
||||
if (count($matches) > 0)
|
||||
$sug = explode("\t", utf8_encode($this->_unhtmlentities($matches[0][4])));
|
||||
$sug = explode("\t", $this->_unhtmlentities($matches[0][4]));
|
||||
|
||||
// Remove empty
|
||||
foreach ($sug as $item) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user